]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/dolphinmainwindow.cpp
SVN_SILENT made messages (.desktop file)
[dolphin.git] / src / dolphinmainwindow.cpp
index e14cb1c2d36fa95424bd368a14064b8708b3541e..76330d1d4c8146fee242f58332f1027ebe21a77b 100644 (file)
@@ -637,7 +637,6 @@ void DolphinMainWindow::quickView()
 
     QDBusMessage msg = QDBusMessage::createMethodCall("org.kde.plasma", "/Previewer", "", "openFile");
     foreach (const KUrl& url, urls) {
-        QList<QVariant> args;
         msg.setArguments(QList<QVariant>() << 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