Show an error message when form loading fails.

--HG--
branch : dfighter-tools
hg/feature/qt5
dfighter1985 10 years ago
parent 0d530f15f6
commit ad4771e3d1

@ -261,6 +261,10 @@ namespace GeorgesQt
{
nlwarning("Failed to load form: %s", info.fileName().toUtf8().constData());
m_dockedWidgets.last()->close();
QMessageBox::information( this,
tr( "Failed to load form..." ),
tr( "Failed to load form '%1'" ).arg( info.fileName() ) );
}
}

Loading…
Cancel
Save