Showing the changes to interface/src/ModelPropertiesDialog.cpp (1 of 11 files). Show all
Unified · Split
| @@ -21,6 +21,7 @@ · 20 unmodified lines | |||
| 21 | 21 | ||
| 22 | #include <FSTReader.h> | 22 | #include <FSTReader.h> |
| 23 | #include <GLMHelpers.h> | 23 | #include <GLMHelpers.h> |
| 24 | #include <OffscreenUi.h> | ||
| 24 | 25 | ||
| 25 | #include "ModelPropertiesDialog.h" | 26 | #include "ModelPropertiesDialog.h" |
| 26 | 27 | ||
| @@ -200,7 +201,7 @@ void ModelPropertiesDialog::chooseTextureDirectory() { · 173 unmodified lines | |||
| 200 | return; | 201 | return; |
| 201 | } | 202 | } |
| 202 | if (!directory.startsWith(_basePath)) { | 203 | if (!directory.startsWith(_basePath)) { |
| 203 | QMessageBox::warning(NULL, "Invalid texture directory", "Texture directory must be child of base path."); | 204 | OffscreenUi::warning(NULL, "Invalid texture directory", "Texture directory must be child of base path."); |
| 204 | return; | 205 | return; |
| 205 | } | 206 | } |
| 206 | _textureDirectory->setText(directory.length() == _basePath.length() ? "." : directory.mid(_basePath.length() + 1)); | 207 | _textureDirectory->setText(directory.length() == _basePath.length() ? "." : directory.mid(_basePath.length() + 1)); |