From 6116ffe4e7370f5867e6d2f23fb8832d314edcfe Mon Sep 17 00:00:00 2001 From: Ad5001 Date: Tue, 18 Oct 2022 18:31:42 +0200 Subject: [PATCH] Removing tab switch on file open due to previous fix about first tab length. --- .../ad5001/LogarithmPlotter/LogarithmPlotter.qml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/LogarithmPlotter.qml b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/LogarithmPlotter.qml index ca1b087..7ade306 100644 --- a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/LogarithmPlotter.qml +++ b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/LogarithmPlotter.qml @@ -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.") }