Showing the changes to interface/src/scripting/WindowScriptingInterface.cpp (1 of 3 files). Show all
Unified · Split
| @@ -295,7 +295,6 @@ QScriptValue WindowScriptingInterface::showBrowse(const QString& title, const QS · 294 unmodified lines | |||
| 295 | // filename if the directory is valid. | 295 | // filename if the directory is valid. |
| 296 | QString path = ""; | 296 | QString path = ""; |
| 297 | QFileInfo fileInfo = QFileInfo(directory); | 297 | QFileInfo fileInfo = QFileInfo(directory); |
| 298 | qDebug() << "File: " << directory << fileInfo.isFile(); | ||
| 299 | if (fileInfo.isDir()) { | 298 | if (fileInfo.isDir()) { |
| 300 | fileInfo.setFile(directory, "__HIFI_INVALID_FILE__"); | 299 | fileInfo.setFile(directory, "__HIFI_INVALID_FILE__"); |
| 301 | path = fileInfo.filePath(); | 300 | path = fileInfo.filePath(); |
| @@ -303,7 +302,6 @@ QScriptValue WindowScriptingInterface::showBrowse(const QString& title, const QS · 1 unmodified line | |||
| 303 | 302 | ||
| 304 | QFileDialog fileDialog(Application::getInstance()->getWindow(), title, path, nameFilter); | 303 | QFileDialog fileDialog(Application::getInstance()->getWindow(), title, path, nameFilter); |
| 305 | fileDialog.setAcceptMode(acceptMode); | 304 | fileDialog.setAcceptMode(acceptMode); |
| 306 | qDebug() << "Opening!"; | ||
| 307 | QUrl fileUrl(directory); | 305 | QUrl fileUrl(directory); |
| 308 | if (acceptMode == QFileDialog::AcceptSave) { | 306 | if (acceptMode == QFileDialog::AcceptSave) { |
| 309 | fileDialog.setFileMode(QFileDialog::Directory); | 307 | fileDialog.setFileMode(QFileDialog::Directory); |