Skip to content

Commit 4583d6a

Browse files
darkelectronTurboGit
authored andcommitted
print correct message when applying style using double click
1 parent 424fb35 commit 4583d6a

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/common/styles.c

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -634,8 +634,14 @@ void dt_styles_apply_to_list(const char *name, const GList *list, gboolean dupli
634634

635635
DT_DEBUG_CONTROL_SIGNAL_RAISE(darktable.signals, DT_SIGNAL_TAG_CHANGED);
636636

637-
if(!selected) dt_control_log(_("no image selected!"));
638-
dt_control_log(_("style %s successfully applied!"), name);
637+
if(!selected)
638+
{
639+
dt_control_log(_("no image selected!"));
640+
}
641+
else
642+
{
643+
dt_control_log(_("style %s successfully applied!"), name);
644+
}
639645
}
640646

641647
void dt_multiple_styles_apply_to_list(GList *styles, const GList *list, gboolean duplicate)

0 commit comments

Comments
 (0)