Show an error message when form loading fails.

This commit is contained in:
dfighter1985 2014-08-30 21:37:11 +02:00
parent e787ab9f75
commit 1016e23be9

View file

@ -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() ) );
}
}