Skip to content

Commit

Permalink
General: don't ask to confirm the overwriting of a file when on macOS…
Browse files Browse the repository at this point in the history
… 10.15 (#2261).
  • Loading branch information
agarny committed Dec 18, 2019
1 parent a1e8dd9 commit 53b5d53
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/plugins/miscellaneous/Core/src/coreguiutils.cpp
Expand Up @@ -345,6 +345,8 @@ QString getSaveFileName(const QString &pCaption, const QString &pFileName,
// Check whether the save file already exists

if ( resInfo.exists()
&& ( (QSysInfo::productType() != "osx")
|| (QSysInfo::productVersion() < "10.15"))
&& questionMessageBox(pCaption,
QObject::tr("<strong>%1</strong> already exists. Do you want to overwrite it?").arg(QDir::toNativeSeparators(res))) == QMessageBox::No) {
continue;
Expand Down

0 comments on commit 53b5d53

Please sign in to comment.