diff options
author | Alan Fitton <ajf@eth0.org.uk> | 2011-11-25 17:47:28 +0000 |
---|---|---|
committer | Alan Fitton <ajf@eth0.org.uk> | 2011-11-25 17:47:28 +0000 |
commit | c4b85ca0613d484512b7d516d459d00d041d046f (patch) | |
tree | ad20bece1ed58f2288803b1bfdbd09f9a83fceb7 /src/trg-torrent-move-dialog.c | |
parent | 4ac5eb6e2e1fe3fa1b6aef89ea6ae865434a783d (diff) |
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.
Diffstat (limited to 'src/trg-torrent-move-dialog.c')
-rw-r--r-- | src/trg-torrent-move-dialog.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); |