Showing the changes to interface/src/ClipboardScriptingInterface.cpp (1 of 7 files). Show all
Unified · Split
| @@ -77,11 +77,11 @@ void ClipboardScriptingInterface::exportVoxel(float x, float y, float z, float s · 76 unmodified lines | |||
| 77 | bool ClipboardScriptingInterface::importVoxels() { | 77 | bool ClipboardScriptingInterface::importVoxels() { |
| 78 | qDebug() << "[DEBUG] Importing ... "; | 78 | qDebug() << "[DEBUG] Importing ... "; |
| 79 | QEventLoop loop; | 79 | QEventLoop loop; |
| 80 | connect(Application::getInstance(), SIGNAL(importDone(int)), &loop, SLOT(quit())); | 80 | connect(Application::getInstance(), SIGNAL(importDone()), &loop, SLOT(quit())); |
| 81 | emit readyToImport(); | 81 | emit readyToImport(); |
| 82 | int returnCode = loop.exec(); | 82 | loop.exec(); |
| 83 | 83 | ||
| 84 | return returnCode; | 84 | return Application::getInstance()->getImportSucceded(); |
| 85 | } | 85 | } |
| 86 | 86 | ||
| 87 | void ClipboardScriptingInterface::nudgeVoxel(const VoxelDetail& sourceVoxel, const glm::vec3& nudgeVec) { | 87 | void ClipboardScriptingInterface::nudgeVoxel(const VoxelDetail& sourceVoxel, const glm::vec3& nudgeVec) { |