X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=mainwindow.cpp;fp=mainwindow.cpp;h=036d6eee686454736a0c4fb9605441df7fc94f10;hb=90e0387483574278ccb48a8e7a013371660e2158;hp=5e019562f55a041eb0d65fb04e0c51ece87823ec;hpb=268305ee303b42405cceac1a641f6d5cd8213324;p=fapman diff --git a/mainwindow.cpp b/mainwindow.cpp index 5e01956..036d6ee 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -351,6 +351,7 @@ void MainWindow::operationQueueFinished(QList last if( inst.count()>0 ) pkglist += QString("Total download size: %L1 kB
").arg(total_dl_size); bool mismatch = false; + bool warn_system_package = false; if( remv.count()>0 ) { pkglist += "
REMOVE:
"; @@ -362,6 +363,11 @@ void MainWindow::operationQueueFinished(QList last pkglist += "***UNKNOWN***"; mismatch = true; } +#ifdef Q_WS_MAEMO_5 + if( pkg && pkg->maemoDisplayName()=="Maemo 5" ) { + warn_system_package = true; + } +#endif if( remvver.count()>i ) { pkglist += " " + remvver.at(i); if( pkg && remvver.at(i) != pkg->version() ) { @@ -393,6 +399,11 @@ void MainWindow::operationQueueFinished(QList last pkglist += "***BLACKLISTED***"; installing_blacklisted = true; } +#ifdef Q_WS_MAEMO_5 + if( pkg && pkg->maemoDisplayName()=="Maemo 5" ) { + warn_system_package = true; + } +#endif if( instver.count()>i ) { pkglist += " " + instver.at(i); if( pkg && instver.at(i) != pkg->version() ) { @@ -420,6 +431,12 @@ void MainWindow::operationQueueFinished(QList last b.setText("Warning","Blacklisted package(s) will be installed"); b.exec(); } + if( warn_system_package ) { + ConfirmDialog s(false, this); + s.setText("Warning","You are trying to perform an operation on a critical system package. This is an operation which has not been tested and " \ + "it is unknown whether it will succeed or result in a horrible failure. You have been warned."); + s.exec(); + } busyDialog(false); ConfirmDialog d(true, this); @@ -469,6 +486,10 @@ void MainWindow::operationQueueFinished(QList last } else { #ifdef Q_WS_MAEMO_5 QMaemo5InformationBox::information(0, text, QMaemo5InformationBox::NoTimeout); +#else + ConfirmDialog d(false, this); + d.setText(title,msgs.join("
")); + d.exec(); #endif }