#4095 System : Add preferences to control project changed and Octave warning dialogs

This commit is contained in:
Magne Sjaastad
2019-02-15 09:07:13 +01:00
parent cdbb13f9f4
commit a0c983a84e
4 changed files with 59 additions and 11 deletions

View File

@@ -929,7 +929,7 @@ bool RiaApplication::hasValidProjectFileExtension(const QString& fileName)
//--------------------------------------------------------------------------------------------------
bool RiaApplication::askUserToSaveModifiedProject()
{
if (caf::PdmUiModelChangeDetector::instance()->isModelChanged())
if (m_preferences->showProjectChangedDialog() && caf::PdmUiModelChangeDetector::instance()->isModelChanged())
{
QMessageBox msgBox;
msgBox.setIcon(QMessageBox::Question);
@@ -1858,7 +1858,7 @@ void RiaApplication::applyPreferences()
}
RiaFontCache::FontSize fontSizeType = m_preferences->fontSizeInScene();
m_customFont = RiaFontCache::getFont(fontSizeType);
m_customFont = RiaFontCache::getFont(fontSizeType);
if (this->project())
{