mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 12:40:35 +01:00
Minor : search and replace widget, clear the tree widget when the current searched project is closed.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5571 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -225,9 +225,13 @@ void SearchAndReplaceWidget::fillItemsList()
|
||||
m_element_hash.clear();
|
||||
|
||||
QETProject *project_ = m_editor->currentProject();
|
||||
if (!project_) {
|
||||
if (!project_)
|
||||
{
|
||||
ui->m_replace_all_pb->setDisabled(true);
|
||||
return;
|
||||
}
|
||||
ui->m_replace_all_pb->setEnabled(true);
|
||||
connect(project_, &QETProject::destroyed, this, &SearchAndReplaceWidget::on_m_reload_pb_clicked);
|
||||
|
||||
|
||||
DiagramContent dc;
|
||||
|
||||
Reference in New Issue
Block a user