mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 11:37:58 +02:00
Update AssetMappingsScriptingInterface.cpp
This commit is contained in:
parent
bae12e4e39
commit
f2c9452846
1 changed files with 2 additions and 2 deletions
|
@ -82,7 +82,7 @@ void AssetMappingsScriptingInterface::uploadFile(QString path, QString mapping,
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
auto result = offscreenUi->inputDialog(OffscreenUi::ICON_INFORMATION, "Specify Asset Path",
|
auto result = offscreenUI->inputDialog(OffscreenUi::ICON_INFORMATION, "Specify Asset Path",
|
||||||
dropEvent ? dropHelpText : helpText, mapping);
|
dropEvent ? dropHelpText : helpText, mapping);
|
||||||
|
|
||||||
if (!result.isValid() || result.toString() == "") {
|
if (!result.isValid() || result.toString() == "") {
|
||||||
|
@ -99,7 +99,7 @@ void AssetMappingsScriptingInterface::uploadFile(QString path, QString mapping,
|
||||||
// Check for override
|
// Check for override
|
||||||
if (isKnownMapping(mapping)) {
|
if (isKnownMapping(mapping)) {
|
||||||
auto message = mapping + "\n" + "This file already exists. Do you want to overwrite it?";
|
auto message = mapping + "\n" + "This file already exists. Do you want to overwrite it?";
|
||||||
auto button = offscreenUi->messageBox(OffscreenUi::ICON_QUESTION, "Overwrite File", message,
|
auto button = offscreenUI->messageBox(OffscreenUi::ICON_QUESTION, "Overwrite File", message,
|
||||||
QMessageBox::Yes | QMessageBox::No, QMessageBox::No);
|
QMessageBox::Yes | QMessageBox::No, QMessageBox::No);
|
||||||
if (button == QMessageBox::No) {
|
if (button == QMessageBox::No) {
|
||||||
completedCallback.call({ -1 });
|
completedCallback.call({ -1 });
|
||||||
|
|
Loading…
Reference in a new issue