Skip to content
Snippets Groups Projects
Commit 481aa0f5 authored by Mikhail Svechnikov's avatar Mikhail Svechnikov
Browse files

no modification on change in View menu

parent 8da7bf47
No related branches found
No related tags found
1 merge request!1304GUI: remember UI, part 1
Pipeline #86849 canceled
...@@ -243,7 +243,6 @@ void ProjectDocument::setSingleInstrumentMode(bool b) ...@@ -243,7 +243,6 @@ void ProjectDocument::setSingleInstrumentMode(bool b)
if (b != m_singleInstrumentMode) { if (b != m_singleInstrumentMode) {
m_singleInstrumentMode = b; m_singleInstrumentMode = b;
emit singleInstrumentModeChanged(); emit singleInstrumentModeChanged();
setModified();
} }
} }
...@@ -257,7 +256,6 @@ void ProjectDocument::setSingleSampleMode(bool b) ...@@ -257,7 +256,6 @@ void ProjectDocument::setSingleSampleMode(bool b)
if (b != m_singleSampleMode) { if (b != m_singleSampleMode) {
m_singleSampleMode = b; m_singleSampleMode = b;
emit singleSampleModeChanged(); emit singleSampleModeChanged();
setModified();
} }
} }
...@@ -271,7 +269,6 @@ void ProjectDocument::setFunctionalities(const Functionalities& f) ...@@ -271,7 +269,6 @@ void ProjectDocument::setFunctionalities(const Functionalities& f)
if (m_functionalities != f) { if (m_functionalities != f) {
m_functionalities = f; m_functionalities = f;
emit functionalitiesChanged(); emit functionalitiesChanged();
setModified();
} }
} }
......
...@@ -115,8 +115,7 @@ InstrumentListView::InstrumentListView(ProjectDocument* document, QWidget* paren ...@@ -115,8 +115,7 @@ InstrumentListView::InstrumentListView(ProjectDocument* document, QWidget* paren
setContextMenuPolicy(Qt::ActionsContextMenu); setContextMenuPolicy(Qt::ActionsContextMenu);
connect(m_document, &ProjectDocument::functionalitiesChanged, this,
connect(m_document, &ProjectDocument::modifiedStateChanged, this,
&InstrumentListView::updateFunctionalityNarrowing); &InstrumentListView::updateFunctionalityNarrowing);
updateFunctionalityNarrowing(); updateFunctionalityNarrowing();
......
...@@ -248,7 +248,6 @@ void InstrumentView::onSingleInstrumentModeChanged(bool newState) ...@@ -248,7 +248,6 @@ void InstrumentView::onSingleInstrumentModeChanged(bool newState)
QMessageBox::warning(this, "Select single instrument mode", QMessageBox::warning(this, "Select single instrument mode",
"This project already contains more than one instrument. Changing " "This project already contains more than one instrument. Changing "
"this setting is not possible."); "this setting is not possible.");
return; return;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment