Cosmetic fixes to detail view and other windows.
[jenirok] / src / gui / detailwindow.cpp
index 23a591f..24bb2ec 100644 (file)
@@ -142,6 +142,8 @@ void DetailWindow::showAddToContactsDialog()
 
 void DetailWindow::addToContacts()
 {
+    setAttribute(Qt::WA_Maemo5ShowProgressIndicator, true);
+
     ContactManager cm;
     ContactManager::Contact contact;
     contact.name = addContactInput_->text();
@@ -158,6 +160,8 @@ void DetailWindow::addToContacts()
         QMessageBox::critical(this, tr("Error"), tr("Unable to add contact."));
     }
 
+    setAttribute(Qt::WA_Maemo5ShowProgressIndicator, false);
+
 }
 
 void DetailWindow::copyToClipboard()