mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#4095 System : Add preferences to control project changed and Octave warning dialogs
This commit is contained in:
@@ -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())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user