Commit 68f81773 authored by Johannes Bergmeier's avatar Johannes Bergmeier
Browse files

- Added back possibility to select value by clicking on preset cells

svn path=/trunk/KDE/kdegames/ksudoku/; revision=796007
parent 1036b211
......@@ -430,7 +430,12 @@ void View2DScene::press(int cell, bool rightButton) {
if(rightButton) {
m_game.flipMarker(cell, m_selectedValue);
} else {
m_game.setValue(cell, m_selectedValue);
if(m_game.given(cell)) {
m_selectedValue = m_game.value(cell);
emit valueSelected(m_selectedValue);
} else {
m_game.setValue(cell, m_selectedValue);
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment