mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-10-12 15:14:12 +02:00
Clear the tools dock when an editor refuses the selection
This commit is contained in:
@@ -619,6 +619,8 @@ void QETElementEditor::updateInformations()
|
||||
}
|
||||
else {
|
||||
qDebug() << "Editor refused part.";
|
||||
clearToolsDock();
|
||||
m_tools_dock_stack->setCurrentIndex(0);
|
||||
}
|
||||
}
|
||||
return;
|
||||
@@ -652,6 +654,8 @@ void QETElementEditor::updateInformations()
|
||||
}
|
||||
else {
|
||||
qDebug() << "Editor refused part.";
|
||||
clearToolsDock();
|
||||
m_tools_dock_stack->setCurrentIndex(0);
|
||||
}
|
||||
}
|
||||
return;
|
||||
@@ -678,6 +682,8 @@ void QETElementEditor::updateInformations()
|
||||
}
|
||||
else {
|
||||
qDebug() << "Editor refused part.";
|
||||
clearToolsDock();
|
||||
m_tools_dock_stack->setCurrentIndex(0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user