summaryrefslogtreecommitdiffstats
path: root/Tools/QtBiomeVisualiser/MainWindow.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-10-28 22:29:46 +0100
committerMattes D <github@xoft.cz>2014-10-28 22:29:46 +0100
commit791f8912125b8b522b8ba197f34c9e2ffb286911 (patch)
treeeae9d305bd7ad06e988a6db4a03d760ded42a6ef /Tools/QtBiomeVisualiser/MainWindow.cpp
parentcIntGen: Added a virtual destructor. (diff)
parentQtBiomeVisualiser: Added quick shutdown to region loaders. (diff)
downloadcuberite-791f8912125b8b522b8ba197f34c9e2ffb286911.tar
cuberite-791f8912125b8b522b8ba197f34c9e2ffb286911.tar.gz
cuberite-791f8912125b8b522b8ba197f34c9e2ffb286911.tar.bz2
cuberite-791f8912125b8b522b8ba197f34c9e2ffb286911.tar.lz
cuberite-791f8912125b8b522b8ba197f34c9e2ffb286911.tar.xz
cuberite-791f8912125b8b522b8ba197f34c9e2ffb286911.tar.zst
cuberite-791f8912125b8b522b8ba197f34c9e2ffb286911.zip
Diffstat (limited to 'Tools/QtBiomeVisualiser/MainWindow.cpp')
-rw-r--r--Tools/QtBiomeVisualiser/MainWindow.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/Tools/QtBiomeVisualiser/MainWindow.cpp b/Tools/QtBiomeVisualiser/MainWindow.cpp
index 7853d768e..e6e951b60 100644
--- a/Tools/QtBiomeVisualiser/MainWindow.cpp
+++ b/Tools/QtBiomeVisualiser/MainWindow.cpp
@@ -8,12 +8,13 @@
#include <QSettings>
#include <QDirIterator>
#include <QStatusBar>
-#include "src/IniFile.h"
#include "ChunkSource.h"
+#include "src/IniFile.h"
#include "src/Generating/BioGen.h"
#include "src/StringCompression.h"
#include "src/WorldStorage/FastNBT.h"
#include "GeneratorSetup.h"
+#include "RegionLoader.h"
@@ -70,7 +71,7 @@ MainWindow::MainWindow(QWidget * parent) :
MainWindow::~MainWindow()
{
-
+ RegionLoader::shutdown();
}
@@ -172,7 +173,8 @@ void MainWindow::setViewZoom()
{
return;
}
- double newZoom = m_ViewZooms[action->data().toInt()];
+ m_CurrentZoomLevel = action->data().toInt();
+ double newZoom = m_ViewZooms[m_CurrentZoomLevel];
m_BiomeView->setZoomLevel(newZoom);
action->setChecked(true);
}