Connection handling in daemon improved. Added settings to allow automatic connection...
[jenirok] / src / gui / detailwindow.cpp
index 8dc4349..24bb2ec 100644 (file)
@@ -32,7 +32,7 @@
 DetailWindow::DetailWindow(QWidget* parent): QMainWindow(parent), addDialog_(0)
 {
     setAttribute(Qt::WA_Maemo5StackedWindow);
-    area_ = new QScrollArea(this);
+    area_ = new QWidget(this);
     layout_ = new QVBoxLayout;
     QHBoxLayout* top = new QHBoxLayout;
     QHBoxLayout* bottom = new QHBoxLayout;
@@ -81,7 +81,6 @@ void DetailWindow::loadData(Eniro::Result const& details)
     streetButton_->setValueText(details.street);
     cityButton_->setValueText(details.city);
     numberButton_->setValueText(details.number);
-    layout_->update();
     show();
 }
 
@@ -143,6 +142,8 @@ void DetailWindow::showAddToContactsDialog()
 
 void DetailWindow::addToContacts()
 {
+    setAttribute(Qt::WA_Maemo5ShowProgressIndicator, true);
+
     ContactManager cm;
     ContactManager::Contact contact;
     contact.name = addContactInput_->text();
@@ -159,6 +160,8 @@ void DetailWindow::addToContacts()
         QMessageBox::critical(this, tr("Error"), tr("Unable to add contact."));
     }
 
+    setAttribute(Qt::WA_Maemo5ShowProgressIndicator, false);
+
 }
 
 void DetailWindow::copyToClipboard()