aboutsummaryrefslogtreecommitdiff
path: root/demos
diff options
context:
space:
mode:
authorStanislav Ionascu <stanislav.ionascu@nokia.com>2010-07-14 10:05:14 +0300
committerJörgen Scheibengruber <jorgen.scheibengruber@nokia.com>2010-07-14 10:12:24 +0300
commit2c5cfdf8c61fb70df67bb7b9d2c2972ba4fa88c5 (patch)
treeed2249046465a7cfcad7993f64fe41c3ee137269 /demos
parentc64a210b40f835d77a5525dcd19b8655290012cd (diff)
Changes: Reset the long tapped index on triggered action in widgets gallery list page.
RevBy: Jörgen
Diffstat (limited to 'demos')
-rw-r--r--demos/widgetsgallery/mlistpage.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/demos/widgetsgallery/mlistpage.cpp b/demos/widgetsgallery/mlistpage.cpp
index ce2a98a4..0637b25e 100644
--- a/demos/widgetsgallery/mlistpage.cpp
+++ b/demos/widgetsgallery/mlistpage.cpp
@@ -504,12 +504,14 @@ void MListPage::removeListItem()
if(longTappedIndex.isValid()) {
mDebug("MListPage::removeListItem") << "Row about to be removed: " << longTappedIndex.row();
proxyModel->removeRow(longTappedIndex.row(), longTappedIndex.parent());
+ longTappedIndex = QModelIndex();
}
}
void MListPage::editListItem()
{
mDebug("MListPage::editListItem") << "Not implemented yet.";
+ longTappedIndex = QModelIndex();
}
void MListPage::liveFilteringTextChanged()