Diffstat (limited to 'noncore/unsupported/oipkg/pmipkg.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/unsupported/oipkg/pmipkg.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/noncore/unsupported/oipkg/pmipkg.cpp b/noncore/unsupported/oipkg/pmipkg.cpp index d29036b..71e9b88 100644 --- a/noncore/unsupported/oipkg/pmipkg.cpp +++ b/noncore/unsupported/oipkg/pmipkg.cpp @@ -26,5 +26,5 @@ #include <qtextstream.h> #include <qtextview.h> - +#include <qmessagebox.h> #include <qprogressbar.h> #include <qpushbutton.h> @@ -40,5 +40,5 @@ PmIpkg::PmIpkg( PackageManagerSettings* s, QWidget* p, const char * name, WFlags f ) - : QObject ( p ) + : QObject ( p ), shellWarning(true) { settings = s; @@ -157,4 +157,10 @@ bool PmIpkg::runIpkg(const QString& args, const QString& dest ) } pclose(fp); + if (!ret && shellWarning) + { + shellWarning = false; + QMessageBox::critical( runwindow, tr("install failure"), + tr("<p>Did you start me from the command line?</p>")); + } #endif //out( "Finished!"); |