]> cloud.milkyroute.net Git - dolphin.git/commitdiff
don't try to do anything if no files have been passed
authorPeter Penz <peter.penz19@gmail.com>
Thu, 17 Dec 2009 21:14:38 +0000 (21:14 +0000)
committerPeter Penz <peter.penz19@gmail.com>
Thu, 17 Dec 2009 21:14:38 +0000 (21:14 +0000)
svn path=/trunk/KDE/kdebase/apps/; revision=1063333

src/dolphinmainwindow.cpp

index 7fcbe498fb7cd067aa9096e3c460813a1a19588d..bcff50cea6225ae658e0ca13671d1d4cd33ce36e 100644 (file)
@@ -184,6 +184,10 @@ void DolphinMainWindow::openDirectories(const QList<KUrl>& dirs)
 
 void DolphinMainWindow::openFiles(const QList<KUrl>& files)
 {
+    if (files.isEmpty()) {
+        return;
+    }
+
     // Get all distinct directories from 'files' and open a tab
     // for each directory. If the "split view" option is enabled, two
     // directories are shown inside one tab (see openDirectories()).