Review Request 124364: Don't rely on options()->initialDirectory() for Qt < 5.4
Kåre Särs
kare.sars at iki.fi
Wed Jul 15 17:20:24 UTC 2015
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/124364/#review82549
-----------------------------------------------------------
I have been looking a bit at the frameworks integration just around that code sniplet and wondered why KDEPlatformFileDialogHelper::setDirectory() is called three times every time the file dialog is opened. And for remote protocols the last time would be wrong. I have not had the time to check :(
I think we might a crash here if you use m_dialog->directory() of the just deleted m_dialog ;)
- Kåre Särs
On July 15, 2015, 3:29 p.m., Aleix Pol Gonzalez wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/124364/
> -----------------------------------------------------------
>
> (Updated July 15, 2015, 3:29 p.m.)
>
>
> Review request for KDE Frameworks and Leszek Lesner.
>
>
> Repository: frameworkintegration
>
>
> Description
> -------
>
> Even though it's the correct thing to do. Its value used to be overriden at some point and it was only fixed for 5.5 [1].
>
> [1] https://codereview.qt-project.org/#/c/105246/
>
>
> Diffs
> -----
>
> src/platformtheme/kdeplatformfiledialoghelper.cpp 02aa56e
>
> Diff: https://git.reviewboard.kde.org/r/124364/diff/
>
>
> Testing
> -------
>
> Fixed it on a broken installation.
>
>
> Thanks,
>
> Aleix Pol Gonzalez
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20150715/1848514b/attachment.html>
More information about the Kde-frameworks-devel
mailing list