summaryrefslogtreecommitdiffstats
path: root/qt-gui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-gui.cpp')
-rw-r--r--qt-gui.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/qt-gui.cpp b/qt-gui.cpp
index 21dd18271..7aeea36a3 100644
--- a/qt-gui.cpp
+++ b/qt-gui.cpp
@@ -58,10 +58,11 @@ static QApplication *application = NULL;
int error_count;
const char *existing_filename;
-void init_qt_ui(int *argcp, char ***argvp)
+void init_qt_ui(int *argcp, char ***argvp, char *errormessage)
{
application->installTranslator(new Translator(application));
MainWindow *window = new MainWindow();
+ window->showError(errormessage);
window->show();
}