[qet] [1332] Ensured the collections are read again when deleting an element or a category . |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/qet Archives
]
Revision: 1332
Author: xavier
Date: 2011-09-18 15:31:41 +0200 (Sun, 18 Sep 2011)
Log Message:
-----------
Ensured the collections are read again when deleting an element or a category.
Modified Paths:
--------------
branches/0.3/sources/elementspanelwidget.cpp
Modified: branches/0.3/sources/elementspanelwidget.cpp
===================================================================
--- branches/0.3/sources/elementspanelwidget.cpp 2011-09-17 18:16:42 UTC (rev 1331)
+++ branches/0.3/sources/elementspanelwidget.cpp 2011-09-18 13:31:41 UTC (rev 1332)
@@ -615,7 +615,7 @@
if (ElementsCollectionItem *selected_item = elements_panel -> selectedItem()) {
if (selected_item -> isCategory() || selected_item -> isCollection()) {
ElementsCategoryDeleter cat_deleter(selected_item -> location(), this);
- if (cat_deleter.exec()) elements_panel -> reload();
+ if (cat_deleter.exec()) elements_panel -> reload(true);
}
}
}
@@ -627,7 +627,7 @@
if (ElementsCollectionItem *selected_item = elements_panel -> selectedItem()) {
if (selected_item -> isElement()) {
ElementDeleter elmt_deleter(selected_item -> location(), this);
- if (elmt_deleter.exec()) elements_panel -> reload();
+ if (elmt_deleter.exec()) elements_panel -> reload(true);
}
}
}