From 3106d58f45ebfd3a0fda56acaa5e9bfabab99981 Mon Sep 17 00:00:00 2001 From: Arno Date: Wed, 27 Dec 2017 11:41:54 +0100 Subject: 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. --- archivecontroller.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'archivecontroller.cpp') 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(); -- cgit v1.2.3-70-g09d2