Changeset 2908
- Timestamp:
- 10/15/08 12:51:29 (17 months ago)
- Location:
- pcbsd
- Files:
-
- 4 modified
-
branches/7.0/SystemUpdater/UpdaterTray.cpp (modified) (5 diffs)
-
branches/7.0/SystemUpdater/main.cpp (modified) (3 diffs)
-
trunk/SystemUpdater/UpdaterTray.cpp (modified) (5 diffs)
-
trunk/SystemUpdater/main.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
pcbsd/branches/7.0/SystemUpdater/UpdaterTray.cpp
r2790 r2908 898 898 // Hide the system updater tool 899 899 SystemUpdaterDialog->hide(); 900 UpdaterStatusDialog->show(); 900 901 901 902 // Clear out the reboot status flag … … 941 942 if ( rebootFlag == 1 ) 942 943 { 944 // Show the updater status dialog, so user can see any errors 945 UpdaterStatusDialog->show(); 946 943 947 QMessageBox::warning( this->contextMenu(), tr("Online Update"), tr("One or more updates will require a reboot. You will be prompted to restart after the update is finished."), QMessageBox::Ok ); 944 948 requiresSysReboot = 1; … … 1264 1268 1265 1269 if ( ! extractProc->start() ) { 1270 // Show the updater status dialog, so user can see any errors 1271 UpdaterStatusDialog->show(); 1272 1266 1273 QMessageBox::critical( this->contextMenu(), tr("Online Update"), tr("An error occured while extracting. Please try again later."), QMessageBox::Ok ); 1274 if ( UpdaterStatusDialog->isShown() ) 1275 { 1276 UpdaterStatusDialog->hide(); 1277 } 1267 1278 exit(15); 1268 1279 } … … 1688 1699 // Hide the system updater tool 1689 1700 SystemUpdaterDialog->hide(); 1701 UpdaterStatusDialog->show(); 1690 1702 1691 1703 … … 1750 1762 if ( attemptedRedownload == 3) 1751 1763 { 1764 // Show the updater status dialog, so user can see any errors 1765 UpdaterStatusDialog->show(); 1766 1752 1767 QMessageBox::critical( this->contextMenu(), tr("Online Update"), PBIProgName[currentWorkingPBI] + ": " + tr("An error occured while downloading. Please try again later."), QMessageBox::Ok ); 1753 1768 -
pcbsd/branches/7.0/SystemUpdater/main.cpp
r2131 r2908 2 2 #include <qtranslator.h> 3 3 #include <qtextcodec.h> 4 #include <k application.h>4 #include <kuniqueapplication.h> 5 5 #include <kaboutdata.h> 6 6 #include <kcmdlineargs.h> … … 23 23 aboutData.addAuthor(ki18n("Kris Moore"), ki18n("Current maintainer"), "kris@pcbsd.org"); 24 24 25 KCmdLineArgs::init(argc, argv, &aboutData);25 KCmdLineArgs::init(argc, argv, &aboutData); 26 26 27 27 KCmdLineOptions options; … … 30 30 KCmdLineArgs::addCmdLineOptions( options ); 31 31 32 K Application a;32 KUniqueApplication a; 33 33 34 34 UpdaterTray tray; -
pcbsd/trunk/SystemUpdater/UpdaterTray.cpp
r2790 r2908 898 898 // Hide the system updater tool 899 899 SystemUpdaterDialog->hide(); 900 UpdaterStatusDialog->show(); 900 901 901 902 // Clear out the reboot status flag … … 941 942 if ( rebootFlag == 1 ) 942 943 { 944 // Show the updater status dialog, so user can see any errors 945 UpdaterStatusDialog->show(); 946 943 947 QMessageBox::warning( this->contextMenu(), tr("Online Update"), tr("One or more updates will require a reboot. You will be prompted to restart after the update is finished."), QMessageBox::Ok ); 944 948 requiresSysReboot = 1; … … 1264 1268 1265 1269 if ( ! extractProc->start() ) { 1270 // Show the updater status dialog, so user can see any errors 1271 UpdaterStatusDialog->show(); 1272 1266 1273 QMessageBox::critical( this->contextMenu(), tr("Online Update"), tr("An error occured while extracting. Please try again later."), QMessageBox::Ok ); 1274 if ( UpdaterStatusDialog->isShown() ) 1275 { 1276 UpdaterStatusDialog->hide(); 1277 } 1267 1278 exit(15); 1268 1279 } … … 1688 1699 // Hide the system updater tool 1689 1700 SystemUpdaterDialog->hide(); 1701 UpdaterStatusDialog->show(); 1690 1702 1691 1703 … … 1750 1762 if ( attemptedRedownload == 3) 1751 1763 { 1764 // Show the updater status dialog, so user can see any errors 1765 UpdaterStatusDialog->show(); 1766 1752 1767 QMessageBox::critical( this->contextMenu(), tr("Online Update"), PBIProgName[currentWorkingPBI] + ": " + tr("An error occured while downloading. Please try again later."), QMessageBox::Ok ); 1753 1768 -
pcbsd/trunk/SystemUpdater/main.cpp
r2131 r2908 2 2 #include <qtranslator.h> 3 3 #include <qtextcodec.h> 4 #include <k application.h>4 #include <kuniqueapplication.h> 5 5 #include <kaboutdata.h> 6 6 #include <kcmdlineargs.h> … … 23 23 aboutData.addAuthor(ki18n("Kris Moore"), ki18n("Current maintainer"), "kris@pcbsd.org"); 24 24 25 KCmdLineArgs::init(argc, argv, &aboutData);25 KCmdLineArgs::init(argc, argv, &aboutData); 26 26 27 27 KCmdLineOptions options; … … 30 30 KCmdLineArgs::addCmdLineOptions( options ); 31 31 32 K Application a;32 KUniqueApplication a; 33 33 34 34 UpdaterTray tray;
