Skip to content

Fix issue with unicode paths in qml - #1027

Merged
TheOneRing merged 1 commit into
mainfrom
work/umlauts
Aug 17, 2026
Merged

TheOneRing merged 1 commit into
mainfrom
work/umlauts

Conversation

@TheOneRing

Copy link
Copy Markdown
Contributor

Instead of constructing a file path in qml we now expose and use showInFileManager in qml

Fixes: #938

@TheOneRing
TheOneRing requested review from guruz and a lite review from Copilot August 17, 2026 09:06

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses Windows failures when opening “Show in Explorer” for folders with Unicode characters by avoiding manual file:///... URL construction in QML and instead exposing a C++ helper that opens the native file manager.

Changes:

  • Added a new OCUtils.showInFileManager(QString) QML-invokable wrapper around the existing OCC::showInFileManager(...) implementation.
  • Updated the QML folder context-menu action to call the new helper instead of Qt.openUrlExternally("file:///" + ...).
  • Added includes needed to call into the existing file-manager opening helper (with one include appearing unused).

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
src/gui/qmlutils.h Exposes showInFileManager() to QML via Q_INVOKABLE.
src/gui/qmlutils.cpp Implements the QML invokable by delegating to OCC::showInFileManager().
src/gui/qml/FolderDelegate.qml Switches the menu action from a constructed file URL to the new invokable.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/gui/qmlutils.cpp Resolved
Comment thread src/gui/qml/FolderDelegate.qml Resolved
Instead of constructing a file path in qml we now expose and use showInFileManager in qml
@TheOneRing
TheOneRing merged commit 18938f0 into main Aug 17, 2026
13 checks passed
@TheOneRing
TheOneRing deleted the work/umlauts branch August 17, 2026 10:24
@openclouders openclouders mentioned this pull request Aug 14, 2026
1 task

@guruz guruz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@saw-jan saw-jan mentioned this pull request Sep 2, 2026
9 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Error explorer not found

3 participants