From 8ca6c6d914a026052912ba18f81539e644e66f52 Mon Sep 17 00:00:00 2001 From: Tobias Markmann Date: Thu, 5 Apr 2012 01:06:02 +0200 Subject: Improve name-suggestion code to better handle high vCard-request response times. License: This patch is BSD-licensed, see http://www.opensource.org/licenses/bsd-license.php diff --git a/Swift/QtUI/QtContactEditWidget.cpp b/Swift/QtUI/QtContactEditWidget.cpp index a80eb38..5e2915f 100644 --- a/Swift/QtUI/QtContactEditWidget.cpp +++ b/Swift/QtUI/QtContactEditWidget.cpp @@ -76,7 +76,7 @@ void QtContactEditWidget::setName(const std::string& name) { } std::string QtContactEditWidget::getName() const { - std::string name; + std::string name = Q2PSTRING(name_->text()); QList buttons = findChildren(); foreach(const QRadioButton* button, buttons) { if (button->isChecked()) { -- cgit v0.10.2-6-g49f6