From c4b85ca0613d484512b7d516d459d00d041d046f Mon Sep 17 00:00:00 2001 From: Alan Fitton Date: Fri, 25 Nov 2011 17:47:28 +0000 Subject: if we're restoring the last selection in the move-dialog, set the move button sensitivity according to if there's a selection rather than always false on load. --- src/trg-torrent-move-dialog.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/trg-torrent-move-dialog.c') diff --git a/src/trg-torrent-move-dialog.c b/src/trg-torrent-move-dialog.c index aecf517..4343373 100644 --- a/src/trg-torrent-move-dialog.c +++ b/src/trg-torrent-move-dialog.c @@ -119,7 +119,8 @@ static GObject *trg_torrent_move_dialog_constructor(GType type, priv->move_button = gtk_dialog_add_button(GTK_DIALOG(object), _("Move"), GTK_RESPONSE_ACCEPT); - gtk_widget_set_sensitive(priv->move_button, FALSE); + + gtk_widget_set_sensitive(priv->move_button, trg_destination_combo_has_text(TRG_DESTINATION_COMBO(priv->location_combo))); gtk_container_set_border_width(GTK_CONTAINER(object), GUI_PAD); -- cgit v1.2.3