From 821e6815203e54e2611a7ef2a5937b299eb6016b Mon Sep 17 00:00:00 2001 From: Maximilian Federle Date: Tue, 18 Jan 2022 14:02:37 +0100 Subject: [PATCH] projectview: Re-enable appending qet suffix if not running as flatpak It was removed in b121dad for all platforms. Only disable appending the suffix for the flatpak platform by testing for the FLATPAK_ID environment variable. --- sources/projectview.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sources/projectview.cpp b/sources/projectview.cpp index db0afb383..d227e5ef5 100644 --- a/sources/projectview.cpp +++ b/sources/projectview.cpp @@ -339,8 +339,8 @@ QString ProjectView::askUserForFilePath(bool assign) { // if no filepath is provided, return an empty string if (filepath.isEmpty()) return(filepath); -// // if the name does not end with the .qet extension, append it -// if (!filepath.endsWith(".qet", Qt::CaseInsensitive)) filepath += ".qet"; + // if the name does not end with the .qet extension and we're _not_ running as a flatpak, append it + if (!filepath.endsWith(".qet", Qt::CaseInsensitive) && !qEnvironmentVariableIsSet("FLATPAK_ID")) filepath += ".qet"; if (assign) { // assign the provided filepath to the currently edited project