mirror of https://github.com/zlatinb/muwire
do not call disconnect() unless connecting/ed. This prevents trying to connect after closing the tab
parent
286a0a8678
commit
57c4a00ac6
|
@ -80,6 +80,7 @@ class ChatServerView {
|
|||
}
|
||||
|
||||
def closeTab = {
|
||||
if (model.buttonText == "Disconnect")
|
||||
controller.disconnect()
|
||||
int index = parent.indexOfComponent(pane)
|
||||
parent.removeTabAt(index)
|
||||
|
|
Loading…
Reference in New Issue