sdgui: fix context menu item sensitivity

This commit is contained in:
Přemysl Eric Janouch 2022-09-03 17:19:12 +02:00
parent b0f1d3d6ea
commit 49072f9d01
Signed by: p
GPG Key ID: A0420B94F92B9493

View File

@ -729,7 +729,7 @@ make_context_menu (StardictView *self)
{
GtkWidget *copy = gtk_menu_item_new_with_mnemonic ("_Copy");
gtk_widget_set_sensitive (copy,
self->selection_begin < self->selection_end);
self->selection_begin != self->selection_end);
g_signal_connect_data (copy, "activate",
G_CALLBACK (on_copy_activate), g_object_ref (self),
(GClosureNotify) g_object_unref, 0);