Skip to content

Commit 5a35c6f

Browse files
committed
lapiz-commands-search: don't move search dialog if it is visible
1 parent 67823b8 commit 5a35c6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lapiz/lapiz-commands-search.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ last_search_data_restore_position (LapizSearchDialog *dlg)
7070

7171
data = g_object_get_data (G_OBJECT (dlg), LAPIZ_LAST_SEARCH_DATA_KEY);
7272

73-
if (data != NULL)
73+
if ((data != NULL) && (ctk_widget_get_visible (CTK_WIDGET (dlg)) == FALSE))
7474
{
7575
ctk_window_move (CTK_WINDOW (dlg),
7676
data->x,

0 commit comments

Comments
 (0)