[qet] qet/qet: [5571] Minor : search and replace widget, clear the tree widget when the current searched project is closed. |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/qet Archives
]
Revision: 5571
Author: blacksun
Date: 2018-10-27 15:31:52 +0200 (Sat, 27 Oct 2018)
Log Message:
-----------
Minor : search and replace widget, clear the tree widget when the current searched project is closed.
Modified Paths:
--------------
trunk/sources/SearchAndReplace/ui/searchandreplacewidget.cpp
trunk/sources/SearchAndReplace/ui/searchandreplacewidget.ui
Modified: trunk/sources/SearchAndReplace/ui/searchandreplacewidget.cpp
===================================================================
--- trunk/sources/SearchAndReplace/ui/searchandreplacewidget.cpp 2018-10-27 07:22:22 UTC (rev 5570)
+++ trunk/sources/SearchAndReplace/ui/searchandreplacewidget.cpp 2018-10-27 13:31:52 UTC (rev 5571)
@@ -225,9 +225,13 @@
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;
Modified: trunk/sources/SearchAndReplace/ui/searchandreplacewidget.ui
===================================================================
--- trunk/sources/SearchAndReplace/ui/searchandreplacewidget.ui 2018-10-27 07:22:22 UTC (rev 5570)
+++ trunk/sources/SearchAndReplace/ui/searchandreplacewidget.ui 2018-10-27 13:31:52 UTC (rev 5571)
@@ -238,6 +238,9 @@
</item>
<item row="2" column="6" colspan="2">
<widget class="QPushButton" name="m_replace_all_pb">
+ <property name="enabled">
+ <bool>false</bool>
+ </property>
<property name="toolTip">
<string>Remplacer les correspondances coché</string>
</property>