Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
KDE Pim
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Unmaintained
KDE Pim
Commits
32981fff
Commit
32981fff
authored
Nov 17, 2014
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improve restore pane
parent
261f99c6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
11 deletions
+13
-11
messagelist/pane.cpp
messagelist/pane.cpp
+13
-11
No files found.
messagelist/pane.cpp
View file @
32981fff
...
...
@@ -1054,7 +1054,7 @@ void Pane::writeConfig(bool restoreSession)
void
Pane
::
readConfig
(
bool
restoreSession
)
{
if
(
restoreSession
&&
MessageList
::
Core
::
Settings
::
self
()
->
config
()
->
hasGroup
(
QLatin1String
(
"MessageListPane"
)))
{
if
(
MessageList
::
Core
::
Settings
::
self
()
->
config
()
->
hasGroup
(
QLatin1String
(
"MessageListPane"
)))
{
KConfigGroup
conf
(
MessageList
::
Core
::
Settings
::
self
()
->
config
(),
"MessageListPane"
);
const
int
numberOfTab
=
conf
.
readEntry
(
QLatin1String
(
"tabNumber"
),
0
);
if
(
numberOfTab
==
0
)
{
...
...
@@ -1063,19 +1063,21 @@ void Pane::readConfig(bool restoreSession)
for
(
int
i
=
0
;
i
<
numberOfTab
;
++
i
)
{
createNewTab
();
restoreHeaderSettings
(
i
);
#if 0
Akonadi::Collection::Id id = grp.readEntry(QLatin1String("collectionId"),-1);
ETMViewStateSaver *saver = new ETMViewStateSaver;
saver->setSelectionModel(selectionModel);
if(id != -1) {
if
(
restoreSession
)
{
#if 0 //TODO fix me
Akonadi::Collection::Id id = grp.readEntry(QLatin1String("collectionId"),-1);
ETMViewStateSaver *saver = new ETMViewStateSaver;
saver->setSelectionModel(selectionModel);
saver->restoreState( grp );
saver->selectCollections(Akonadi::Collection::List()<<Akonadi::Collection(id));
saver->restoreCurrentItem( QString::fromLatin1("c%1").arg(id) );
}
if(id != -1) {
ETMViewStateSaver *saver = new ETMViewStateSaver;
saver->setSelectionModel(selectionModel);
saver->restoreState( grp );
saver->selectCollections(Akonadi::Collection::List()<<Akonadi::Collection(id));
saver->restoreCurrentItem( QString::fromLatin1("c%1").arg(id) );
}
#endif
}
}
setCurrentIndex
(
conf
.
readEntry
(
QLatin1String
(
"currentIndex"
),
0
));
}
...
...
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