diff options
Diffstat (limited to 'src/designer/src/components/buddyeditor/buddyeditor.cpp')
-rw-r--r-- | src/designer/src/components/buddyeditor/buddyeditor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/designer/src/components/buddyeditor/buddyeditor.cpp b/src/designer/src/components/buddyeditor/buddyeditor.cpp index 7593326db..93e143c2a 100644 --- a/src/designer/src/components/buddyeditor/buddyeditor.cpp +++ b/src/designer/src/components/buddyeditor/buddyeditor.cpp @@ -329,7 +329,7 @@ void BuddyEditor::autoBuddy() { // Any labels? LabelList labelList = background()->findChildren<QLabel*>(); - if (labelList.empty()) + if (labelList.isEmpty()) return; // Find already used buddies QWidgetList usedBuddies; @@ -355,7 +355,7 @@ void BuddyEditor::autoBuddy() } } // Add the list in one go. - if (labelList.empty()) + if (labelList.isEmpty()) return; const int count = labelList.size(); Q_ASSERT(count == buddies.size()); |