瀏覽代碼

And another fix.

pull/333/head
Greg Holmes 9 年之前
父節點
當前提交
a15a6c660b

+ 1
- 1
ui_swing/src/com/dmdirc/addons/ui_swing/dialogs/profile/ProfileManagerController.java 查看文件

@@ -278,7 +278,7 @@ public class ProfileManagerController implements ProfilesDialogModelListener {
278 278
     @Override
279 279
     public void profileSelectionChanged(final Optional<MutableProfile> profile) {
280 280
         okButton.setEnabled(model.isSaveAllowed());
281
-        deleteProfile.setEnabled(model.isProfileListValid());
281
+        deleteProfile.setEnabled(model.getSelectedProfile().isPresent());
282 282
         if (profile.isPresent()) {
283 283
             final int index = profilesModel.indexOf(profile.get());
284 284
             selectionModel.setLeadSelectionIndex(index);

Loading…
取消
儲存