Removing tab switch on file open due to previous fix about first tab length.
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
2a8cab9398
commit
6116ffe4e7
1 changed files with 8 additions and 8 deletions
|
@ -272,15 +272,15 @@ ApplicationWindow {
|
|||
history.unserialize(...data["history"])
|
||||
|
||||
// Refreshing sidebar
|
||||
if(sidebarSelector.currentIndex == 0) {
|
||||
// For some reason, if we load a file while the tab is on object,
|
||||
// we get stuck in a Qt-side loop? Qt bug or side-effect here, I don't know.
|
||||
sidebarSelector.currentIndex = 1
|
||||
//if(sidebarSelector.currentIndex == 0) {
|
||||
// // For some reason, if we load a file while the tab is on object,
|
||||
// // we get stuck in a Qt-side loop? Qt bug or side-effect here, I don't know.
|
||||
// sidebarSelector.currentIndex = 1
|
||||
// objectLists.update()
|
||||
// delayRefreshTimer.start()
|
||||
//} else {
|
||||
objectLists.update()
|
||||
delayRefreshTimer.start()
|
||||
} else {
|
||||
objectLists.update()
|
||||
}
|
||||
//}
|
||||
} else {
|
||||
error = qsTr("Invalid file provided.")
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue