D12240: Save the dialog view settings when closing the dialog without hitting the cancel button

Anthony Fieroni noreply at phabricator.kde.org
Tue Apr 17 03:45:23 UTC 2018


anthonyfieroni added inline comments.

INLINE COMMENTS

> kdeplatformfiledialoghelper.cpp:243
> +{
> +    m_fileWidget->writeViewConfig();
> +    QDialog::reject();

You can see at line 108 on reject is called slotCancel, so for convenience just call it

  m_fileWidget->slotCancel();

Then you can discard D12239 <https://phabricator.kde.org/D12239>

REPOSITORY
  R135 Integration for Qt applications in Plasma

REVISION DETAIL
  https://phabricator.kde.org/D12240

To: ngraham, #frameworks
Cc: anthonyfieroni, elvisangelaccio, plasma-devel, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20180417/51bf4ef4/attachment-0001.html>


More information about the Kde-frameworks-devel mailing list