From: Peter Penz Date: Thu, 17 Dec 2009 21:14:38 +0000 (+0000) Subject: don't try to do anything if no files have been passed X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/4ce21c5a6e0d8740c97cddf2f653b7bc7d55e68f don't try to do anything if no files have been passed svn path=/trunk/KDE/kdebase/apps/; revision=1063333 --- diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp index 7fcbe498f..bcff50cea 100644 --- a/src/dolphinmainwindow.cpp +++ b/src/dolphinmainwindow.cpp @@ -184,6 +184,10 @@ void DolphinMainWindow::openDirectories(const QList& dirs) void DolphinMainWindow::openFiles(const QList& 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()).