diff options
| author | Arno <arno@disconnect.de> | 2017-12-27 11:41:54 +0100 | 
|---|---|---|
| committer | Arno <arno@disconnect.de> | 2017-12-27 11:41:54 +0100 | 
| commit | 3106d58f45ebfd3a0fda56acaa5e9bfabab99981 (patch) | |
| tree | f64fcc254619b61f3c04ec01e125fd421e97f448 /archivecontroller.cpp | |
| parent | 2dfaf19f50493373b36840d5c46b738da1b1757b (diff) | |
| download | SheMov-3106d58f45ebfd3a0fda56acaa5e9bfabab99981.tar.gz SheMov-3106d58f45ebfd3a0fda56acaa5e9bfabab99981.tar.bz2 SheMov-3106d58f45ebfd3a0fda56acaa5e9bfabab99981.zip | |
Don't crash when doubleclicking an Origin file
Bail out if we have FT_ORIGIN. This file will never be present. Also
check harder what title to set in pictureviewer2.cpp, if any.
Diffstat (limited to 'archivecontroller.cpp')
| -rw-r--r-- | archivecontroller.cpp | 2 | 
1 files changed, 2 insertions, 0 deletions
| diff --git a/archivecontroller.cpp b/archivecontroller.cpp index ffee2e1..b250337 100644 --- a/archivecontroller.cpp +++ b/archivecontroller.cpp @@ -395,6 +395,8 @@ void ArchiveController::fileDoubleClicked(const QModelIndex &idx){          args << idx.data(ArchiveFilesModel::FullPathRole).toString();          QProcess::startDetached(playerData.first, args);          return; +    }else if(type == FT_ORIGIN){ +        return;      }      PictureViewer2 *pv = SmGlobals::instance()->pictureViewer();      QModelIndex parent = idx.parent(); | 
