Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Unmaintained
KDE Pim
Commits
8c1d2e35
Commit
8c1d2e35
authored
Dec 02, 2014
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor optimization
parent
ec477ef7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
kmail/manageshowcollectionproperties.cpp
kmail/manageshowcollectionproperties.cpp
+7
-5
No files found.
kmail/manageshowcollectionproperties.cpp
View file @
8c1d2e35
...
...
@@ -70,10 +70,12 @@ void ManageShowCollectionProperties::showCollectionProperties( const QString &pa
{
if
(
!
mMainWidget
->
currentFolder
()
)
return
;
if
(
mHashDialogBox
.
contains
(
mMainWidget
->
currentFolder
()
->
collection
().
id
()))
{
if
(
mHashDialogBox
.
value
(
mMainWidget
->
currentFolder
()
->
collection
().
id
()))
{
mHashDialogBox
.
value
(
mMainWidget
->
currentFolder
()
->
collection
().
id
())
->
activateWindow
();
mHashDialogBox
.
value
(
mMainWidget
->
currentFolder
()
->
collection
().
id
())
->
raise
();
Akonadi
::
Collection
::
Id
id
=
mMainWidget
->
currentFolder
()
->
collection
().
id
();
if
(
mHashDialogBox
.
contains
(
id
))
{
QPointer
<
Akonadi
::
CollectionPropertiesDialog
>
dlg
=
mHashDialogBox
.
value
(
id
);
if
(
dlg
)
{
dlg
->
activateWindow
();
dlg
->
raise
();
return
;
}
}
...
...
@@ -94,7 +96,7 @@ void ManageShowCollectionProperties::showCollectionProperties( const QString &pa
Akonadi
::
CollectionAttributesSynchronizationJob
*
sync
=
new
Akonadi
::
CollectionAttributesSynchronizationJob
(
mMainWidget
->
currentFolder
()
->
collection
()
);
sync
->
setProperty
(
"collectionId"
,
mMainWidget
->
currentFolder
()
->
collection
().
id
()
);
sync
->
setProperty
(
"collectionId"
,
id
);
sync
->
setProperty
(
"pageToShow"
,
pageToShow
);
// note for dialog later
sync
->
setProperty
(
"progressItem"
,
QVariant
::
fromValue
(
progressItem
)
);
connect
(
sync
,
SIGNAL
(
result
(
KJob
*
)),
...
...
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