Review Request 124364: Don't rely on options()->initialDirectory() for Qt < 5.4

Aleix Pol Gonzalez aleixpol at kde.org
Wed Jul 15 23:02:34 UTC 2015



> On July 15, 2015, 7:20 p.m., Kåre Särs wrote:
> > 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 ;)

You are correct, thank you very much! I changed it from deleteLater at the last time. Will put the deleteLater back...


- Aleix


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/124364/#review82549
-----------------------------------------------------------


On July 15, 2015, 5: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, 5: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/5437c454/attachment.html>


More information about the Kde-frameworks-devel mailing list