From 53e348a62f3a6e92a5bf2cfb1b72b0c4742eef66 Mon Sep 17 00:00:00 2001 From: Stefan Suhren Date: Mon, 8 Jun 2015 12:34:35 +0200 Subject: Close file after read --- mainwindow.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mainwindow.cpp b/mainwindow.cpp index 5df38a5..10b8d36 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -62,6 +62,8 @@ void MainWindow::on_actionLoad_triggered() ui->interactionCanvasPlaceholder->read(lastUsedFile); } + lastUsedFile->close(); + } void MainWindow::on_actionSave_triggered() -- cgit v1.2.3-70-g09d2