summaryrefslogtreecommitdiffstats
path: root/qt-gui.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-05-21 23:13:45 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-05-21 23:39:49 -0700
commit478baf107623c3aa0c31c3256cfc3bc794b089b1 (patch)
tree090485f799a36090bf4a301ba8611f0b5686a44a /qt-gui.cpp
parent5aa8b52f82399bd4343a8213927c7e9694def1bc (diff)
downloadsubsurface-478baf107623c3aa0c31c3256cfc3bc794b089b1.tar.gz
Replace GError handling with a kMessageWidget based approach
Instead of passing pointers to GError around we pass just pointers to error message texts around and use kMessageWidget to show those. Problem is that right now the close button on that doesn't do a thing - so the error stays around indefinitely. Oops. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
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();
}