forked from linuxdeepin/dde-file-manager
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: prevent dialog crash caused by thread safety issues
1. Add thread assertion in DialogManager singleton: - Ensure DialogManager is only accessed from main thread - Add Q_ASSERT check for thread safety 2. Fix rename file operation issues: - Make needCheck parameter explicit in LocalFileHandler::renameFile - Pass correct needCheck flag in different rename scenarios: * Set to false for cut operations * Set to true for direct rename operations 3. Code style improvements: - Fix spacing in variable initialization - Improve code formatting for better readability This fixes potential crashes when showing dialogs from non-main threads and improves rename operation reliability. Log: fix crash
- Loading branch information
1 parent
9775e9f
commit 6a3b6ee
Showing
4 changed files
with
9 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters