added prohibition of using "dangerous" options on the server management page, when the connection is active (#726)
This commit is contained in:
parent
10ea9b418a
commit
a22c08a41d
5 changed files with 52 additions and 23 deletions
|
@ -169,8 +169,13 @@ PageType {
|
|||
var noButtonText = qsTr("Cancel")
|
||||
|
||||
var yesButtonFunction = function() {
|
||||
SettingsController.clearSettings()
|
||||
PageController.replaceStartPage()
|
||||
if (ServersModel.isDefaultServerCurrentlyProcessed() && ConnectionController.isConnected) {
|
||||
PageController.showNotificationMessage(qsTr("Cannot reset settings during active connection"))
|
||||
} else
|
||||
{
|
||||
SettingsController.clearSettings()
|
||||
PageController.replaceStartPage()
|
||||
}
|
||||
}
|
||||
var noButtonFunction = function() {
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue