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>
This commit is contained in:
Berthold Stoeger 2017-12-04 08:44:07 +01:00 committed by Lubomir I. Ivanov
parent 03e87437e3
commit ed92b60bfe

View file

@ -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;
}