summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2013-07-12 21:11:21 +0000
committerStijn Buys <ingar@osirion.org>2013-07-12 21:11:21 +0000
commit359fd932e5925dff7dd722bd9bb2aa463210badd (patch)
treed29515e14e724f9a7cd3845676b47fb174c3eaa4 /src
parent1346537ab4fbd6c9853161c4accc8073a9975372 (diff)
Removes the revertstate, as it is no longer being used,
Diffstat (limited to 'src')
-rw-r--r--src/solverwindow.cc10
-rw-r--r--src/solverwindow.h1
2 files changed, 3 insertions, 8 deletions
diff --git a/src/solverwindow.cc b/src/solverwindow.cc
index a73eb51..bb9a2ec 100644
--- a/src/solverwindow.cc
+++ b/src/solverwindow.cc
@@ -52,8 +52,7 @@ void SolverWindow::openFromFile(const QString & filename)
QApplication::setOverrideCursor(Qt::WaitCursor);
- QTextStream textstream(&file);
-
+ QTextStream textstream(&file);
Sudoku sudoku;
for (int row = 0; row < 9; row++) {
for (int column = 0; column < 9 ; column++) {
@@ -62,11 +61,9 @@ void SolverWindow::openFromFile(const QString & filename)
sudoku.cell(row, column).set_value(i);
}
}
- solverwindow_sudokuwidget->set_values(sudoku);
- solverwindow_revertstate.assign(sudoku);
-
file.close();
+ solverwindow_sudokuwidget->set_values(sudoku);
solverwindow_filename = filename;
QApplication::restoreOverrideCursor();
@@ -86,8 +83,7 @@ void SolverWindow::saveToFile(const QString & filename)
QApplication::setOverrideCursor(Qt::WaitCursor);
- QTextStream textstream(&file);
-
+ QTextStream textstream(&file);
Sudoku sudoku;
solverwindow_sudokuwidget->get_values(sudoku);
for (int row = 0; row < 9; row++) {
diff --git a/src/solverwindow.h b/src/solverwindow.h
index dc2e595..053e14a 100644
--- a/src/solverwindow.h
+++ b/src/solverwindow.h
@@ -55,7 +55,6 @@ private:
void openFromFile(const QString & filename);
SudokuWidget *solverwindow_sudokuwidget;
- Sudoku solverwindow_revertstate;
QString solverwindow_filename;
};