From 530ef7675ed51f3629862dfc342bba72ece11222 Mon Sep 17 00:00:00 2001 From: -f Date: Tue, 10 Dec 2013 15:47:55 +0100 Subject: [PATCH] fixed issue 106 --- src/gui/UBDocumentTreeWidget.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gui/UBDocumentTreeWidget.cpp b/src/gui/UBDocumentTreeWidget.cpp index 749878b8..7254a68f 100644 --- a/src/gui/UBDocumentTreeWidget.cpp +++ b/src/gui/UBDocumentTreeWidget.cpp @@ -261,7 +261,7 @@ void UBDocumentTreeWidget::dropEvent(QDropEvent *event) UBDocumentProxyTreeItem* pi = dynamic_cast(ti); if (pi) { - if (mSelectedProxyTi->proxy()->metaData(UBSettings::documentUpdatedAt).toString() >= pi->proxy()->metaData(UBSettings::documentUpdatedAt).toString()) + if (mSelectedProxyTi->proxy()->metaData(UBSettings::documentDate).toString() >= pi->proxy()->metaData(UBSettings::documentDate).toString()) { break; } @@ -380,7 +380,7 @@ void UBDocumentTreeWidget::documentUpdated(UBDocumentProxy *pDocument) UBDocumentProxyTreeItem* pi = dynamic_cast(ti); if (pi) { - if (pDocument->metaData(UBSettings::documentUpdatedAt).toString() >= pi->proxy()->metaData(UBSettings::documentUpdatedAt).toString()) + if (pDocument->metaData(UBSettings::documentDate).toString() >= pi->proxy()->metaData(UBSettings::documentDate).toString()) { bool selected = treeItem->isSelected(); parent->removeChild(treeItem); @@ -416,7 +416,7 @@ UBDocumentProxyTreeItem::UBDocumentProxyTreeItem(QTreeWidgetItem * parent, UBDoc UBDocumentProxyTreeItem* pi = dynamic_cast(ti); if (pi) { - if (proxy->metaData(UBSettings::documentUpdatedAt).toString() >= pi->proxy()->metaData(UBSettings::documentUpdatedAt).toString()) + if (proxy->metaData(UBSettings::documentDate).toString() >= pi->proxy()->metaData(UBSettings::documentDate).toString()) { break; }