diff options
Diffstat (limited to 'src/backup.cpp')
| -rw-r--r-- | src/backup.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/backup.cpp b/src/backup.cpp index d770f1d..be900c2 100644 --- a/src/backup.cpp +++ b/src/backup.cpp @@ -81,9 +81,9 @@ BackupDialog::BackupDialog(TQWidget *parent, const char *name) "In this case, mount the shared-folder to the local file system and ask %2 to use that mount point.<br>" "Warning: you should not run %3 at the same time on both computers, or you risk to loss data while the two applications are desynced.</li>" "</ul><p>Please remember that you should not change the content of that folder manually (eg. adding a file in a basket folder will not add that file to the basket).</p>") - .arg(kapp->aboutData()->programName()) - .arg(kapp->aboutData()->programName()) - .arg(kapp->aboutData()->programName()), + .arg(tdeApp->aboutData()->programName()) + .arg(tdeApp->aboutData()->programName()) + .arg(tdeApp->aboutData()->programName()), folderWidget); folderLayout->addWidget(moveFolder); folderLayout->addWidget(useFolder); @@ -216,7 +216,7 @@ void BackupDialog::backup() thread.start(); while (thread.running()) { progress->advance(1); // Or else, the animation is not played! - kapp->processEvents(); + tdeApp->processEvents(); usleep(300); // Not too long because if the backup process is finished, we wait for nothing } @@ -274,14 +274,14 @@ void BackupDialog::restore() thread.start(); while (thread.running()) { progress->advance(1); // Or else, the animation is not played! - kapp->processEvents(); + tdeApp->processEvents(); usleep(300); // Not too long because if the restore process is finished, we wait for nothing } dialog->hide(); // The restore is finished, do not continue to show it while telling the user the application is going to be restarted delete dialog; // If we only hidden it, it reappeared just after having restored a small backup... Very strange. dialog = 0; // This was annoying since it is modal and the "BasKet Note Pads is going to be restarted" message was not reachable. - //kapp->processEvents(); + //tdeApp->processEvents(); // Check for errors: if (!thread.success()) { @@ -338,12 +338,12 @@ void Backup::setFolderAndRestart(const TQString &folder, const TQString &message 0, "<qt>" + message.arg( (folder.endsWith("/") ? folder.left(folder.length() - 1) : folder), - kapp->aboutData()->programName()), + tdeApp->aboutData()->programName()), i18n("Restart") ); // Restart the application: - KRun::runCommand(binaryPath, kapp->aboutData()->programName(), kapp->iconName()); + KRun::runCommand(binaryPath, tdeApp->aboutData()->programName(), tdeApp->iconName()); exit(0); } |
