diff options
Diffstat (limited to 'desktop-widgets/mainwindow.cpp')
-rw-r--r-- | desktop-widgets/mainwindow.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/desktop-widgets/mainwindow.cpp b/desktop-widgets/mainwindow.cpp index 7fa12c524..3c70f73f4 100644 --- a/desktop-widgets/mainwindow.cpp +++ b/desktop-widgets/mainwindow.cpp @@ -91,9 +91,7 @@ MainWindow *MainWindow::m_Instance = NULL; extern "C" void showErrorFromC() { - MainWindow *mainwindow = MainWindow::instance(); - if (mainwindow) - emit mainwindow->showError(get_error_string()); + emit MainWindow::instance()->showError(get_error_string()); } MainWindow::MainWindow() : QMainWindow(), |