Review Request 117368: Resolve first-time-run crash of PMC due to not existing data directory.

Antonis Tsiapaliokas antonis.tsiapaliokas at kde.org
Fri Apr 4 11:29:38 UTC 2014


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



libs/mediacenter/mediacenter.cpp
<https://git.reviewboard.kde.org/r/117368/#comment38360>

    since your are not using the first_run in another place you should not create a variable with it. You could just do
    
    if (!QDir(pcm_path).exists()) {
           QDir().mkpath(pmc_path);
    }
    
    Also the correct coding style is 
    
    if (....) {
       mycontent;
    }


- Antonis Tsiapaliokas


On April 4, 2014, 11:21 a.m., Nikolaos Chatzidakis wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/117368/
> -----------------------------------------------------------
> 
> (Updated April 4, 2014, 11:21 a.m.)
> 
> 
> Review request for Plasma, Shantanu Tushar and Sinny Kumari.
> 
> 
> Repository: plasma-mediacenter
> 
> 
> Description
> -------
> 
> This patch resolves the crash of PMC if it's running for the first time and its data directory does not exist in ~/.kde4/share/apps.
> 
> 
> Diffs
> -----
> 
>   libs/mediacenter/mediacenter.cpp 35240d3 
> 
> Diff: https://git.reviewboard.kde.org/r/117368/diff/
> 
> 
> Testing
> -------
> 
> Tested the fix, it creates the directory if it doesn't exist (first-time-run assumption).
> 
> 
> Thanks,
> 
> Nikolaos Chatzidakis
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20140404/23d67acc/attachment.html>


More information about the Plasma-devel mailing list