Skip to content
This repository has been archived by the owner on Oct 30, 2021. It is now read-only.

Commit

Permalink
Remove conditional compilation in get save path function [core]
Browse files Browse the repository at this point in the history
  • Loading branch information
DOOMer committed May 7, 2012
1 parent 1dc6105 commit cb86636
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions src/core/core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -312,32 +312,17 @@ QString Core::getSaveFilePath(QString format)
{
if (conf->getDateTimeInFilename() == true)
{
#ifdef Q_WS_X11
initPath = conf->getSaveDir()+conf->getSaveFileName() +"-"+getDateTimeFileName() +"."+format;
#endif
#ifdef Q_WS_WIN
initPath = conf->getSaveDir()+conf->getSaveFileName()+"-"+getDateTimeFileName();
#endif
initPath = conf->getSaveDir()+conf->getSaveFileName() +"-"+getDateTimeFileName() +"."+format;
}
else
{
if (conf->getScrNum() != 0)
{
#ifdef Q_WS_X11
initPath = conf->getSaveDir()+conf->getSaveFileName() + conf->getScrNumStr() +"."+format;
#endif
#ifdef Q_WS_WIN
initPath = conf->getSaveDir()+conf->getSaveFileName() + conf->getScrNumStr();
#endif
}
else
{
#ifdef Q_WS_X11
initPath = conf->getSaveDir() + conf->getSaveFileName()+"."+format;
#endif
#ifdef Q_WS_WIN
initPath = conf->getSaveDir()+conf->getSaveFileName();
#endif
}
}
} while(checkExsistFile(initPath) == true);
Expand Down

0 comments on commit cb86636

Please sign in to comment.