From df5557407e7d5e9a904b91b2511260f4acea5dc0 Mon Sep 17 00:00:00 2001 From: scorpio810 Date: Thu, 26 Jan 2017 16:05:43 +0000 Subject: [PATCH] Minor, protect mode : improve message git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4875 bfdf4180-ca20-0410-9c96-a3a8aa849046 --- sources/qetproject.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sources/qetproject.cpp b/sources/qetproject.cpp index d89184e95..8ff6deb85 100644 --- a/sources/qetproject.cpp +++ b/sources/qetproject.cpp @@ -83,7 +83,6 @@ QETProject::QETProject(const QString &path, QObject *parent) : m_auto_conductor (true ), m_elements_collection (nullptr) { - QSettings settings; //Open the file QFile project_file(path); if (!project_file.open(QIODevice::ReadOnly | QIODevice::Text)) @@ -802,7 +801,7 @@ QETResult QETProject::write() return(QString("the file %1 was opened read-only and thus will not be written").arg(file_path_)); if (settings.value("qetproject/readonly", true).toBool()){ - return(QString("the file %1 was opened read-only and thus will not be written").arg(file_path_)); + return(QString("the file %1 was opened read-only and thus will not be written, see QET settings for disable files protection").arg(file_path_)); } //Get the project in xml