Skip to content
Commit b8f5b90f authored by Elvis Angelaccio's avatar Elvis Angelaccio
Browse files

part: use KMessageWidgets for errors about invalid input

When the user opens (from Dolphin) an archive whose plugin is not available,
the feedback is currently very annoying:

- a KMessageBox pops up with the error message
- the user closes the message box
- an empty (and useless) Ark window shows up

This patch replaces the KMessageBoxes with KMessageWidgets, so that the 3 steps
above are merged into 1.

This patch also move the input validation code from Part::openFile() to a new
Part::isLocalFileValid() method.

Differential Revision: D1167
parent 76601745
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment