mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-09 05:28:09 +08:00
Ref T659, login dialog can display connected and disconnected state and also change its state
This commit is contained in:
committed by
Mat Sutcliffe
parent
d52eb9c8d6
commit
d1715ef5ba
@@ -252,9 +252,9 @@ void SwiftGuiStd::loginRequested()
|
||||
}
|
||||
else
|
||||
{
|
||||
// const bool connected = sGui->getIContextNetwork()->isConnected();
|
||||
const bool shift = QApplication::keyboardModifiers() & Qt::ShiftModifier;
|
||||
const bool connected = sGui->getIContextNetwork()->isConnected();
|
||||
if (!connected && shift)
|
||||
if (shift)
|
||||
{
|
||||
if (!m_loginDialog) { m_loginDialog.reset(new CLoginDialog(this)); }
|
||||
connect(m_loginDialog.data(), &CLoginDialog::requestNetworkSettings, this, &SwiftGuiStd::displayNetworkSettings);
|
||||
|
||||
Reference in New Issue
Block a user