Просмотр исходного кода

Use onActivated for profile override combobox

Lipu Fei 8 лет назад
Родитель
Сommit
fa7dc3a708
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      resources/qml/DiscardOrKeepProfileChangesDialog.qml

+ 2 - 2
resources/qml/DiscardOrKeepProfileChangesDialog.qml

@@ -155,9 +155,9 @@ UM.Dialog
                     }
                 }
 
-                onCurrentIndexChanged:
+                onActivated:
                 {
-                    var code = model.get(currentIndex).code;
+                    var code = model.get(index).code;
                     UM.Preferences.setValue("cura/choice_on_profile_override", code);
 
                     if (code == "always_keep") {