summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/assistant/assistant/preferencesdialog.cpp2
-rw-r--r--src/designer/src/lib/shared/connectionedit.cpp8
2 files changed, 4 insertions, 6 deletions
diff --git a/src/assistant/assistant/preferencesdialog.cpp b/src/assistant/assistant/preferencesdialog.cpp
index 963b61596..4652d0187 100644
--- a/src/assistant/assistant/preferencesdialog.cpp
+++ b/src/assistant/assistant/preferencesdialog.cpp
@@ -251,7 +251,7 @@ void PreferencesDialog::updateFilterPage()
for (const QString &a : helpEngine.filterAttributes())
new QTreeWidgetItem(m_ui.attributeWidget, QStringList() << a);
- if (!m_filterMap.keys().isEmpty())
+ if (!m_filterMap.isEmpty())
m_ui.filterWidget->setCurrentRow(0);
}
diff --git a/src/designer/src/lib/shared/connectionedit.cpp b/src/designer/src/lib/shared/connectionedit.cpp
index 8f3b12ab2..219774113 100644
--- a/src/designer/src/lib/shared/connectionedit.cpp
+++ b/src/designer/src/lib/shared/connectionedit.cpp
@@ -1194,12 +1194,10 @@ void ConnectionEdit::mouseDoubleClickEvent(QMouseEvent *e)
case Dragging:
break;
case Editing:
- if (!m_widget_under_mouse.isNull()) {
+ if (!m_widget_under_mouse.isNull())
emit widgetActivated(m_widget_under_mouse);
- } else if (m_sel_con_set.size() == 1) {
- Connection *con = m_sel_con_set.keys().first();
- modifyConnection(con);
- }
+ else if (m_sel_con_set.size() == 1)
+ modifyConnection(m_sel_con_set.constBegin().key());
break;
}