[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[vidalia-svn] r2069: Only enable the button to remove a bridge if a bridge is sel (in trunk: . src/gui/config)
Author: edmanm
Date: 2007-10-22 22:12:26 -0400 (Mon, 22 Oct 2007)
New Revision: 2069
Modified:
trunk/
trunk/src/gui/config/networkpage.cpp
trunk/src/gui/config/networkpage.ui
Log:
r2197@lysithea: edmanm | 2007-10-22 22:12:20 -0400
Only enable the button to remove a bridge if a bridge is selected.
Property changes on: trunk
___________________________________________________________________
svk:merge ticket from /local/vidalia/trunk [r2197] on dc66be73-d13e-47ba-a267-8dc7cda68c65
Modified: trunk/src/gui/config/networkpage.cpp
===================================================================
--- trunk/src/gui/config/networkpage.cpp 2007-10-23 01:53:44 UTC (rev 2068)
+++ trunk/src/gui/config/networkpage.cpp 2007-10-23 02:12:26 UTC (rev 2069)
@@ -243,7 +243,9 @@
void
NetworkPage::bridgeSelectionChanged()
{
- ui.btnCopyBridge->setEnabled(!ui.listBridges->selectedItems().isEmpty());
+ bool enabled = !ui.listBridges->selectedItems().isEmpty();
+ ui.btnCopyBridge->setEnabled(enabled);
+ ui.btnRemoveBridge->setEnabled(enabled);
}
/** Saves changes made to settings on the Firewall settings page. */
Modified: trunk/src/gui/config/networkpage.ui
===================================================================
--- trunk/src/gui/config/networkpage.ui 2007-10-23 01:53:44 UTC (rev 2068)
+++ trunk/src/gui/config/networkpage.ui 2007-10-23 02:12:26 UTC (rev 2069)
@@ -357,6 +357,9 @@
</item>
<item>
<widget class="QPushButton" name="btnRemoveBridge" >
+ <property name="enabled" >
+ <bool>false</bool>
+ </property>
<property name="maximumSize" >
<size>
<width>32</width>