summaryrefslogtreecommitdiffstats
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index cc40d5e..2c56da2 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -1,7 +1,6 @@
#include "mainwindow.h"
#include "ui_mainwindow.h"
-#include <pwd.h>
-
+ #include <QMessageBox>
MainWindow::MainWindow(char *argv[], QWidget *parent) :
@@ -268,7 +267,11 @@ void MainWindow::on_buttonPrint_clicked()
NULL,
dest->num_options,
dest->options))
- return; // TODO ERROR OUTPUT
+ {
+ QMessageBox msgBox;
+ msgBox.setText(cupsLastErrorString());
+ msgBox.exec();
+ }
else // Quit with code 0
QCoreApplication::instance()->quit();