fix for close dialog with cross button
This commit is contained in:
parent
7f924e1240
commit
c4e0e6e000
2 changed files with 5 additions and 5 deletions
|
@ -65,7 +65,7 @@ public:
|
|||
const int iPingTime,
|
||||
const int iPingTimeLEDColor );
|
||||
|
||||
bool GetCancelPressed() const { return bCancelPressed; }
|
||||
bool GetStateOK() const { return bStateOK; }
|
||||
bool GetServerListItemWasChosen() const { return bServerListItemWasChosen; }
|
||||
QString GetSelectedAddress() const { return strSelectedAddress; }
|
||||
|
||||
|
@ -79,12 +79,12 @@ protected:
|
|||
CVector<QString> vstrIPAddresses;
|
||||
QString strSelectedAddress;
|
||||
bool bServerListReceived;
|
||||
bool bCancelPressed;
|
||||
bool bStateOK;
|
||||
bool bServerListItemWasChosen;
|
||||
|
||||
public slots:
|
||||
void OnServerListItemDoubleClicked ( QTreeWidgetItem* Item, int );
|
||||
void OnCancelButtonClicked();
|
||||
void OnConnectButtonClicked();
|
||||
void OnTimerPing();
|
||||
void OnTimerReRequestServList();
|
||||
|
||||
|
|
|
@ -734,8 +734,8 @@ void CLlconClientDlg::ConnectDisconnect ( const bool bDoStart )
|
|||
ConnectDlg.LoadStoredServers ( pClient->vstrIPAddress );
|
||||
ConnectDlg.exec();
|
||||
|
||||
// check if cancel was pressed
|
||||
if ( !ConnectDlg.GetCancelPressed() )
|
||||
// check if state is OK (e.g., no Cancel was pressed)
|
||||
if ( ConnectDlg.GetStateOK() )
|
||||
{
|
||||
const QString strSelectedAddress = ConnectDlg.GetSelectedAddress();
|
||||
|
||||
|
|
Loading…
Reference in a new issue