Commit 7fa92224 authored by Laurent Montel's avatar Laurent Montel 😁

Clean up code as discussed with David

parent 6737caaf
...@@ -80,14 +80,12 @@ void ManageShowCollectionProperties::showCollectionProperties( const QString &pa ...@@ -80,14 +80,12 @@ void ManageShowCollectionProperties::showCollectionProperties( const QString &pa
{ {
if ( !mMainWidget->currentFolder() ) if ( !mMainWidget->currentFolder() )
return; return;
Akonadi::Collection::Id id = mMainWidget->currentFolder()->collection().id(); const Akonadi::Collection::Id id = mMainWidget->currentFolder()->collection().id();
if (mHashDialogBox.contains(id)) { QPointer<Akonadi::CollectionPropertiesDialog> dlg = mHashDialogBox.value(id);
QPointer<Akonadi::CollectionPropertiesDialog> dlg = mHashDialogBox.value(id); if (dlg) {
if (dlg) { dlg->activateWindow();
dlg->activateWindow(); dlg->raise();
dlg->raise(); return;
return;
}
} }
if ( Solid::Networking::status() == Solid::Networking::Unconnected ) { if ( Solid::Networking::status() == Solid::Networking::Unconnected ) {
KMessageBox::information( KMessageBox::information(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment