author | tille <tille> | 2002-07-06 15:26:04 (UTC) |
---|---|---|
committer | tille <tille> | 2002-07-06 15:26:04 (UTC) |
commit | 7fcf35f1632134cc9f0b3d38949864df3df59c4c (patch) (side-by-side diff) | |
tree | 1c3ef72622877e4d9b59fd73880fa8ffe7936897 /noncore/unsupported/oipkg/pmipkg.cpp | |
parent | 76685f88ebcfd475c2d3c6d8c69271883053b09f (diff) | |
download | opie-7fcf35f1632134cc9f0b3d38949864df3df59c4c.zip opie-7fcf35f1632134cc9f0b3d38949864df3df59c4c.tar.gz opie-7fcf35f1632134cc9f0b3d38949864df3df59c4c.tar.bz2 |
cmd line dialog
Diffstat (limited to 'noncore/unsupported/oipkg/pmipkg.cpp') (more/less context) (ignore 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 @@ -25,7 +25,7 @@ #include <qcheckbox.h> #include <qtextstream.h> #include <qtextview.h> - +#include <qmessagebox.h> #include <qprogressbar.h> #include <qpushbutton.h> #include <qlayout.h> @@ -39,7 +39,7 @@ //#define OPROCESS PmIpkg::PmIpkg( PackageManagerSettings* s, QWidget* p, const char * name, WFlags f ) - : QObject ( p ) + : QObject ( p ), shellWarning(true) { settings = s; runwindow = new RunWindow( p, name, true, f ); @@ -156,6 +156,12 @@ 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!"); pvDebug(2,QString(ret?"success\n":"failure\n")); |