summaryrefslogtreecommitdiff
path: root/noncore/unsupported/oipkg/pmipkg.cpp
Side-by-side diff
Diffstat (limited to 'noncore/unsupported/oipkg/pmipkg.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/unsupported/oipkg/pmipkg.cpp10
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
@@ -27,3 +27,3 @@
#include <qtextview.h>
-
+#include <qmessagebox.h>
#include <qprogressbar.h>
@@ -41,3 +41,3 @@
PmIpkg::PmIpkg( PackageManagerSettings* s, QWidget* p, const char * name, WFlags f )
- : QObject ( p )
+ : QObject ( p ), shellWarning(true)
{
@@ -158,2 +158,8 @@ 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