From 4a47c1bfffffad7094f0b5c7cef532069e088ec3 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Wed, 22 Jan 2025 17:46:54 +0900 Subject: Use tdeApp Signed-off-by: Michele Calgaro --- src/backup.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/backup.cpp') 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.
" "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." "

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).

") - .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, "" + 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); } -- cgit v1.2.1