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
{
if ( !mMainWidget->currentFolder() )
return;
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;
}
const Akonadi::Collection::Id id = mMainWidget->currentFolder()->collection().id();
QPointer<Akonadi::CollectionPropertiesDialog> dlg = mHashDialogBox.value(id);
if (dlg) {
dlg->activateWindow();
dlg->raise();
return;
}
if ( Solid::Networking::status() == Solid::Networking::Unconnected ) {
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