aboutsummaryrefslogtreecommitdiffstats
path: root/desktop-widgets/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'desktop-widgets/mainwindow.cpp')
-rw-r--r--desktop-widgets/mainwindow.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/desktop-widgets/mainwindow.cpp b/desktop-widgets/mainwindow.cpp
index 3c70f73f4..ac6289f34 100644
--- a/desktop-widgets/mainwindow.cpp
+++ b/desktop-widgets/mainwindow.cpp
@@ -89,9 +89,11 @@ extern "C" int updateProgress(const char *text)
MainWindow *MainWindow::m_Instance = NULL;
-extern "C" void showErrorFromC()
+extern "C" void showErrorFromC(char *buf)
{
- emit MainWindow::instance()->showError(get_error_string());
+ QString error(buf);
+ free(buf);
+ emit MainWindow::instance()->showError(error);
}
MainWindow::MainWindow() : QMainWindow(),