X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/8d189f44c4d1bf3bea71da43fef59cb772a348bc..bc4e59dc39fedcbb323c48942f8c0fd85d75f270:/src/dolphinmainwindow.cpp diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp index e14cb1c2d..76330d1d4 100644 --- a/src/dolphinmainwindow.cpp +++ b/src/dolphinmainwindow.cpp @@ -637,7 +637,6 @@ void DolphinMainWindow::quickView() QDBusMessage msg = QDBusMessage::createMethodCall("org.kde.plasma", "/Previewer", "", "openFile"); foreach (const KUrl& url, urls) { - QList args; msg.setArguments(QList() << url.prettyUrl()); QDBusConnection::sessionBus().send(msg); } @@ -701,7 +700,7 @@ void DolphinMainWindow::closeTab(int index) if (index == m_tabIndex) { // The tab that should be closed is the active tab. Activate the // previous tab before closing the tab. - setActiveTab((index > 0) ? index - 1 : 1); + m_tabBar->setCurrentIndex((index > 0) ? index - 1 : 1); } // delete tab