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
a69d1b39
Commit
a69d1b39
authored
6 years ago
by
Clément Fauconnier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save SortOrder and SortKind changes
parent
17d8d095
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
UBDocumentController.cpp
src/document/UBDocumentController.cpp
+4
-0
No files found.
src/document/UBDocumentController.cpp
View file @
a69d1b39
...
...
@@ -2069,6 +2069,8 @@ void UBDocumentController::onSortOrderChanged(bool order)
int
orderIndex
=
order
?
UBDocumentController
::
DESC
:
UBDocumentController
::
ASC
;
sortDocuments
(
kindIndex
,
orderIndex
);
UBSettings
::
settings
()
->
documentSortOrder
->
setInt
(
orderIndex
);
}
void
UBDocumentController
::
onSortKindChanged
(
int
index
)
...
...
@@ -2076,6 +2078,8 @@ void UBDocumentController::onSortKindChanged(int index)
int
orderIndex
=
mDocumentUI
->
sortOrder
->
isChecked
()
?
UBDocumentController
::
DESC
:
UBDocumentController
::
ASC
;
sortDocuments
(
index
,
orderIndex
);
UBSettings
::
settings
()
->
documentSortKind
->
setInt
(
index
);
}
QWidget
*
UBDocumentController
::
controlView
()
...
...
This diff is collapsed.
Click to expand it.
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