summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/divelistview.cpp
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2017-12-04 08:44:07 +0100
committerGravatar Lubomir I. Ivanov <neolit123@gmail.com>2017-12-04 18:35:44 +0100
commited92b60bfe249e2ec030c8e103e545dec854aba9 (patch)
tree6c1555e7dafd3538ad254c12230885067a865937 /desktop-widgets/divelistview.cpp
parent03e87437e31fb134d77041f57d5d944daaf32225 (diff)
downloadsubsurface-ed92b60bfe249e2ec030c8e103e545dec854aba9.tar.gz
Fix typo "LastIamgeDir"->"LastImageDir"
This fixes an actual bug, where the current image dir would only be remembered on closing the program. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets/divelistview.cpp')
-rw-r--r--desktop-widgets/divelistview.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop-widgets/divelistview.cpp b/desktop-widgets/divelistview.cpp
index c12ac8934..48b10fbc4 100644
--- a/desktop-widgets/divelistview.cpp
+++ b/desktop-widgets/divelistview.cpp
@@ -1018,7 +1018,7 @@ QString DiveListView::lastUsedImageDir()
settings.beginGroup("FileDialog");
if (settings.contains("LastImageDir"))
if (QDir::setCurrent(settings.value("LastImageDir").toString()))
- lastImageDir = settings.value("LastIamgeDir").toString();
+ lastImageDir = settings.value("LastImageDir").toString();
return lastImageDir;
}