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:
blacksun
2018-10-27 13:31:52 +00:00
parent b83aa74485
commit 8e250bd569
2 changed files with 8 additions and 1 deletions

View File

@@ -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;