code style fixes
This commit is contained in:
parent
885ca80083
commit
18563be2fb
@ -53,11 +53,12 @@ namespace Plasma
|
|||||||
bool copyFolder(QString sourcePath, QString targetPath)
|
bool copyFolder(QString sourcePath, QString targetPath)
|
||||||
{
|
{
|
||||||
QDir source(sourcePath);
|
QDir source(sourcePath);
|
||||||
if(!source.exists())
|
if (!source.exists()) {
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
QDir target(targetPath);
|
QDir target(targetPath);
|
||||||
if(!target.exists()) {
|
if (!target.exists()) {
|
||||||
QString targetName = target.dirName();
|
QString targetName = target.dirName();
|
||||||
target.cdUp();
|
target.cdUp();
|
||||||
target.mkdir(targetName);
|
target.mkdir(targetName);
|
||||||
|
Loading…
Reference in New Issue
Block a user