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 iPingTime,
|
||||||
const int iPingTimeLEDColor );
|
const int iPingTimeLEDColor );
|
||||||
|
|
||||||
bool GetCancelPressed() const { return bCancelPressed; }
|
bool GetStateOK() const { return bStateOK; }
|
||||||
bool GetServerListItemWasChosen() const { return bServerListItemWasChosen; }
|
bool GetServerListItemWasChosen() const { return bServerListItemWasChosen; }
|
||||||
QString GetSelectedAddress() const { return strSelectedAddress; }
|
QString GetSelectedAddress() const { return strSelectedAddress; }
|
||||||
|
|
||||||
|
@ -79,12 +79,12 @@ protected:
|
||||||
CVector<QString> vstrIPAddresses;
|
CVector<QString> vstrIPAddresses;
|
||||||
QString strSelectedAddress;
|
QString strSelectedAddress;
|
||||||
bool bServerListReceived;
|
bool bServerListReceived;
|
||||||
bool bCancelPressed;
|
bool bStateOK;
|
||||||
bool bServerListItemWasChosen;
|
bool bServerListItemWasChosen;
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void OnServerListItemDoubleClicked ( QTreeWidgetItem* Item, int );
|
void OnServerListItemDoubleClicked ( QTreeWidgetItem* Item, int );
|
||||||
void OnCancelButtonClicked();
|
void OnConnectButtonClicked();
|
||||||
void OnTimerPing();
|
void OnTimerPing();
|
||||||
void OnTimerReRequestServList();
|
void OnTimerReRequestServList();
|
||||||
|
|
||||||
|
|
|
@ -734,8 +734,8 @@ void CLlconClientDlg::ConnectDisconnect ( const bool bDoStart )
|
||||||
ConnectDlg.LoadStoredServers ( pClient->vstrIPAddress );
|
ConnectDlg.LoadStoredServers ( pClient->vstrIPAddress );
|
||||||
ConnectDlg.exec();
|
ConnectDlg.exec();
|
||||||
|
|
||||||
// check if cancel was pressed
|
// check if state is OK (e.g., no Cancel was pressed)
|
||||||
if ( !ConnectDlg.GetCancelPressed() )
|
if ( ConnectDlg.GetStateOK() )
|
||||||
{
|
{
|
||||||
const QString strSelectedAddress = ConnectDlg.GetSelectedAddress();
|
const QString strSelectedAddress = ConnectDlg.GetSelectedAddress();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue