Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpenBoard
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lifo
Nicolas Ollinger
OpenBoard
Commits
530ef767
Commit
530ef767
authored
Dec 10, 2013
by
-f
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed issue 106
parent
7c29ec04
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
UBDocumentTreeWidget.cpp
src/gui/UBDocumentTreeWidget.cpp
+3
-3
No files found.
src/gui/UBDocumentTreeWidget.cpp
View file @
530ef767
...
...
@@ -261,7 +261,7 @@ void UBDocumentTreeWidget::dropEvent(QDropEvent *event)
UBDocumentProxyTreeItem
*
pi
=
dynamic_cast
<
UBDocumentProxyTreeItem
*>
(
ti
);
if
(
pi
)
{
if
(
mSelectedProxyTi
->
proxy
()
->
metaData
(
UBSettings
::
document
UpdatedAt
).
toString
()
>=
pi
->
proxy
()
->
metaData
(
UBSettings
::
documentUpdatedAt
).
toString
())
if
(
mSelectedProxyTi
->
proxy
()
->
metaData
(
UBSettings
::
document
Date
).
toString
()
>=
pi
->
proxy
()
->
metaData
(
UBSettings
::
documentDate
).
toString
())
{
break
;
}
...
...
@@ -380,7 +380,7 @@ void UBDocumentTreeWidget::documentUpdated(UBDocumentProxy *pDocument)
UBDocumentProxyTreeItem
*
pi
=
dynamic_cast
<
UBDocumentProxyTreeItem
*>
(
ti
);
if
(
pi
)
{
if
(
pDocument
->
metaData
(
UBSettings
::
document
UpdatedAt
).
toString
()
>=
pi
->
proxy
()
->
metaData
(
UBSettings
::
documentUpdatedAt
).
toString
())
if
(
pDocument
->
metaData
(
UBSettings
::
document
Date
).
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
<
UBDocumentProxyTreeItem
*>
(
ti
);
if
(
pi
)
{
if
(
proxy
->
metaData
(
UBSettings
::
document
UpdatedAt
).
toString
()
>=
pi
->
proxy
()
->
metaData
(
UBSettings
::
documentUpdatedAt
).
toString
())
if
(
proxy
->
metaData
(
UBSettings
::
document
Date
).
toString
()
>=
pi
->
proxy
()
->
metaData
(
UBSettings
::
documentDate
).
toString
())
{
break
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment