diff options
| author | Peter Penz <[email protected]> | 2009-12-17 21:14:38 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2009-12-17 21:14:38 +0000 |
| commit | 4ce21c5a6e0d8740c97cddf2f653b7bc7d55e68f (patch) | |
| tree | bc02a03da2fc313b892988870fd6a909a6154a2e /src/dolphinmainwindow.cpp | |
| parent | e15a9f3a8da1907b26195a1833588fc86a9d50ca (diff) | |
don't try to do anything if no files have been passed
svn path=/trunk/KDE/kdebase/apps/; revision=1063333
Diffstat (limited to 'src/dolphinmainwindow.cpp')
| -rw-r--r-- | src/dolphinmainwindow.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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<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()). |
