fixed first container selection on HomeContainersListView after server cleanup
This commit is contained in:
parent
73cfab166f
commit
f55bd5e1a1
1 changed files with 4 additions and 3 deletions
|
@ -30,7 +30,9 @@ ListView {
|
|||
target: ServersModel
|
||||
|
||||
function onCurrentlyProcessedServerIndexChanged() {
|
||||
menuContent.checkCurrentItem()
|
||||
if (ContainersModel.getDefaultContainer()) {
|
||||
menuContent.checkCurrentItem()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -76,9 +78,8 @@ ListView {
|
|||
}
|
||||
|
||||
if (checked) {
|
||||
ServersModel.setDefaultContainer(proxyContainersModel.mapToSource(index))
|
||||
|
||||
containersDropDown.menuVisible = false
|
||||
ServersModel.setDefaultContainer(proxyContainersModel.mapToSource(index))
|
||||
} else {
|
||||
if (!isSupported && isInstalled) {
|
||||
PageController.showErrorMessage(qsTr("The selected protocol is not supported on the current platform"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue