Fix combobox switching in qml
parent
b5f649436c
commit
a6f34bb1da
|
@ -27,8 +27,8 @@ ApplicationWindow {
|
|||
model: styles
|
||||
textRole: "display"
|
||||
onCurrentIndexChanged: {
|
||||
if (currentText && currentText != "QtQuick Controls 2") {
|
||||
widgets.currentText = currentText;
|
||||
if (currentIndex != qtquickIndex) {
|
||||
widgets.currentIndex = currentIndex;
|
||||
application.close();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -23,8 +23,8 @@ ApplicationWindow {
|
|||
model: styles
|
||||
textRole: "display"
|
||||
onCurrentIndexChanged: {
|
||||
if (currentText && currentText != "QtQuick") {
|
||||
widgets.currentText = currentText;
|
||||
if (currentIndex != qtquickIndex) {
|
||||
widgets.currentIndex = currentIndex;
|
||||
application.close();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue