| Summary: | Crash when renaming (not using inline rename) | ||
|---|---|---|---|
| Product: | [Applications] dolphin | Reporter: | Christoph Feck <cfeck> |
| Component: | general | Assignee: | Dolphin Bug Assignee <dolphin-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | crash | CC: | chinmoyrp65, elvis.angelaccio, scott |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | https://commits.kde.org/dolphin/30349ef1bdcae0ed80f47c168d46c15020b927d3 | Version Fixed/Implemented In: | 18.03.90 |
| Sentry Crash Report: | |||
|
Description
Christoph Feck
2018-04-04 23:42:08 UTC
This might be a bug in 18.04 branch, too. Well, there is no QSpinBox in the simple rename dialog. The new code probably was written with the more complex rename dialog in mind. https://cgit.kde.org/dolphin.git/commit/src/views?id=c5eb4e31161ccf422a2f2492fe998c5c9817bea4 removed the code for the simple rename KIO::moveAs call, but instead always uses KIO::batchRename. Only the undo logic checks for the simple rename. For the simple rename, KIO::batchRename cannot be used, because it always tries to either replace or append the running index number. Git commit 30349ef1bdcae0ed80f47c168d46c15020b927d3 by Elvis Angelaccio. Committed on 05/04/2018 at 21:15. Pushed by elvisangelaccio into branch 'Applications/18.04'. [RenameDialog] Fix crash when renaming single items Summary: `m_spinBox` is initialized only when renaming multiple items. This commit restores the single-item rename logic which was wrongly removed by commit c5eb4e31161ccf422. FIXED-IN: 18.03.90 Test Plan: Disable inline renaming and try to rename single or multiple items (and also to undo the jobs). Subscribers: #dolphin Differential Revision: https://phabricator.kde.org/D11972 M +11 -4 src/views/renamedialog.cpp https://commits.kde.org/dolphin/30349ef1bdcae0ed80f47c168d46c15020b927d3 Beat me to it. I was going to attempt this, but I doubt I could have done it as quickly as Elvis did. At least I know my idea was roughly correct. |