mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
5aa8b52f82
commit
478baf1076
8 changed files with 55 additions and 42 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue