diff --git a/source/blender/editors/space_outliner/outliner_edit.cc b/source/blender/editors/space_outliner/outliner_edit.cc index 69d5939ea38..e930216af9a 100644 --- a/source/blender/editors/space_outliner/outliner_edit.cc +++ b/source/blender/editors/space_outliner/outliner_edit.cc @@ -2285,8 +2285,6 @@ static void outliner_orphans_purge_ui(bContext * /*C*/, wmOperator *op) } LibQueryUnusedIDsData &data = *static_cast(op->customdata); - uiItemS_ex(layout, 0.5f); - std::string unused_message = ""; unused_message_gen(unused_message, data.num_local); uiLayout *column = uiLayoutColumn(layout, true); diff --git a/source/blender/windowmanager/intern/wm_operators.cc b/source/blender/windowmanager/intern/wm_operators.cc index 33fad16da21..2bbdc7f3ead 100644 --- a/source/blender/windowmanager/intern/wm_operators.cc +++ b/source/blender/windowmanager/intern/wm_operators.cc @@ -1543,6 +1543,11 @@ static uiBlock *wm_block_dialog_create(bContext *C, ARegion *region, void *user_ /* Title. */ if (!data->title.empty()) { uiItemL_ex(layout, data->title.c_str(), ICON_NONE, true, false); + + /* Line under the title if there are properties but no message body. */ + if (data->include_properties && message_lines.size() == 0) { + uiItemS_ex(layout, 0.2f, LayoutSeparatorType::Line); + }; } /* Message lines. */ @@ -1551,6 +1556,7 @@ static uiBlock *wm_block_dialog_create(bContext *C, ARegion *region, void *user_ } if (data->include_properties) { + uiItemS_ex(layout, 0.5f); uiTemplateOperatorPropertyButs(C, layout, op, UI_BUT_LABEL_ALIGN_SPLIT_COLUMN, 0); }