diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-05-21 23:13:45 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-05-21 23:39:49 -0700 |
commit | 478baf107623c3aa0c31c3256cfc3bc794b089b1 (patch) | |
tree | 090485f799a36090bf4a301ba8611f0b5686a44a /qt-gui.cpp | |
parent | 5aa8b52f82399bd4343a8213927c7e9694def1bc (diff) | |
download | subsurface-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.cpp | 3 |
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(); } |