From: Kai Uwe Broulik Date: Wed, 6 May 2020 08:52:38 +0000 (+0200) Subject: Merge branch 'release/20.04' X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/37deaaef2c39a4c4b410cd0313a55a4072d2b2ff?hp=-c Merge branch 'release/20.04' --- 37deaaef2c39a4c4b410cd0313a55a4072d2b2ff diff --combined src/dolphinmainwindow.cpp index 6a5fdb1c4,f374db41d..77937790a --- a/src/dolphinmainwindow.cpp +++ b/src/dolphinmainwindow.cpp @@@ -50,11 -50,9 +50,11 @@@ #include #include #include +#include #include #include #include +#include #include #include #include @@@ -581,14 -579,6 +581,14 @@@ void DolphinMainWindow::closeEvent(QClo } } + if (GeneralSettings::rememberOpenedTabs()) { + KConfigGui::setSessionConfig(QStringLiteral("dolphin"), QStringLiteral("dolphin")); + KConfig *config = KConfigGui::sessionConfig(); + saveGlobalProperties(config); + savePropertiesInternal(config, 1); + config->sync(); + } + GeneralSettings::setVersion(CurrentDolphinVersion); GeneralSettings::self()->save(); @@@ -936,10 -926,7 +936,10 @@@ void DolphinMainWindow::compareFiles( command.append("\" \""); command.append(urlB.toDisplayString(QUrl::PreferLocalFile)); command.append('\"'); - KRun::runCommand(command, QStringLiteral("Kompare"), QStringLiteral("kompare"), this); + + KIO::CommandLauncherJob *job = new KIO::CommandLauncherJob(command, this); + job->setDesktopName(QStringLiteral("org.kde.kompare")); + job->start(); } void DolphinMainWindow::toggleShowMenuBar() @@@ -1278,7 -1265,7 +1278,7 @@@ void DolphinMainWindow::tabCountChanged void DolphinMainWindow::updateWindowTitle() { - const QString newTitle = m_activeViewContainer->caption(); + const QString newTitle = m_activeViewContainer->captionWindowTitle(); if (windowTitle() != newTitle) { setWindowTitle(newTitle); } @@@ -2310,8 -2297,6 +2310,6 @@@ bool DolphinMainWindow::event(QEvent *e QWhatsThisClickedEvent* whatsThisEvent = dynamic_cast(event); QDesktopServices::openUrl(QUrl(whatsThisEvent->href())); return true; - } else if (event->type() == QEvent::WindowActivate) { - updateOpenPreferredSearchToolAction(); } return KXmlGuiWindow::event(event); }