Skip to content

Commit

Permalink
Enable write protect checkbox for Floppy
Browse files Browse the repository at this point in the history
Fixes #14
  • Loading branch information
midwan committed Feb 24, 2017
1 parent 305ef54 commit af0b966
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/osdep/gui/PanelFloppy.cpp
Expand Up @@ -138,7 +138,7 @@ class DFxCheckActionListener : public gcn::ActionListener
//---------------------------------------
// Write-protect changed
//---------------------------------------
// ToDo: set write protect for floppy
disk_setwriteprotect(&changed_prefs, i, changed_prefs.floppyslots[i].df, chkDFxWriteProtect[i]->isSelected());
}
}
}
Expand Down Expand Up @@ -381,7 +381,6 @@ void InitPanelFloppy(const struct _ConfigCategory& category)

chkDFxWriteProtect[i] = new gcn::UaeCheckBox("Write-protected");
chkDFxWriteProtect[i]->addActionListener(dfxCheckActionListener);
chkDFxWriteProtect[i]->setEnabled(false);

cmdDFxInfo[i] = new gcn::Button("?");
cmdDFxInfo[i]->setSize(SMALL_BUTTON_WIDTH, SMALL_BUTTON_HEIGHT);
Expand Down

0 comments on commit af0b966

Please sign in to comment.