Remove duplicate if on svgz icon check

This commit is contained in:
Chris Rizzitello
2017-11-11 08:33:45 -05:00
parent 80d84514d6
commit 35c2fedfa6
+1 -1
View File
@@ -305,7 +305,7 @@ int main(int argc, char **argv)
} }
if(QFileInfo(appDirPath + "/" + desktopIconEntry + ".svgz").exists() == true){ if(QFileInfo(appDirPath + "/" + desktopIconEntry + ".svgz").exists() == true){
preExistingToplevelIcon = appDirPath + "/" + desktopIconEntry + ".svgz"; preExistingToplevelIcon = appDirPath + "/" + desktopIconEntry + ".svgz";
if(QFileInfo(appDirPath + "/.DirIcon").exists() == false) if(QFileInfo(appDirPath + "/.DirIcon").exists() == false) QFile::copy(preExistingToplevelIcon, appDirPath + "/.DirIcon"); if(QFileInfo(appDirPath + "/.DirIcon").exists() == false) QFile::copy(preExistingToplevelIcon, appDirPath + "/.DirIcon");
} }
if(QFileInfo(appDirPath + "/" + desktopIconEntry + ".svg").exists() == true){ if(QFileInfo(appDirPath + "/" + desktopIconEntry + ".svg").exists() == true){
preExistingToplevelIcon = appDirPath + "/" + desktopIconEntry + ".svg"; preExistingToplevelIcon = appDirPath + "/" + desktopIconEntry + ".svg";