diff options
author | Manuel Schneider | 2013-10-08 13:56:26 +0200 |
---|---|---|
committer | Manuel Schneider | 2013-10-08 13:56:26 +0200 |
commit | 9fade0d6096807ed207c9a2c8d634251301a8e9a (patch) | |
tree | c4eb712f8f2213cef77748a6a2de81e18824544a /src/mainwindow.cpp | |
parent | Builds now a lowercase letter binary (diff) | |
download | printergui-9fade0d6096807ed207c9a2c8d634251301a8e9a.tar.gz printergui-9fade0d6096807ed207c9a2c8d634251301a8e9a.tar.xz printergui-9fade0d6096807ed207c9a2c8d634251301a8e9a.zip |
Widgets disabled by default. A failed printjob spawns error dialog
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r-- | src/mainwindow.cpp | 9 |
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(); |