copy backtrace file with overwrite flag

Authored by sitter on Jun 7 2019, 11:05 AM.

Description

copy backtrace file with overwrite flag

Summary:
QFileDialog was already run with confirmOverwrite, but we didn't actually
set the Overwrite flag on the copy call, so we got an error back when
the file already existed. Since the user already needed to confirm the
overwrite in the QFD we can always pass Overwrite.

BUG: 405597
CHANGELOG: Saving backtraces now overwrites files when necessary
FIXED-IN: 5.16.1

Test Plan:

  • save backtrace
  • save again
  • dialog asks to confirm overwrite
  • gets overwritten succesfully
  • save again
  • refuse to overwrite
  • dialog stays open until cancel or new path is chosen
  • no overwrite

Reviewers: Plasma

Subscribers: plasma-devel

Tags: Plasma

Differential Revision: https://phabricator.kde.org/D21645

Details

Committed
sitterJun 7 2019, 12:19 PM
Differential Revision
D21645: copy backtrace file with overwrite flag
Parents
R871:c8f8b9d962eb: use errorString instead of errorText
Branches
Unknown
Tags
Unknown