Centralize stat calls to ensure consistency of time fields on windows
This commit is contained in:
parent
a1d4659d5b
commit
fad8f5151b
9 changed files with 52 additions and 18 deletions
|
@ -553,6 +553,9 @@ void UIPrefsDialog::delExtraDbPB_clicked()
|
|||
|
||||
static bool samedir(const string& dir1, const string& dir2)
|
||||
{
|
||||
#ifdef _WIN32
|
||||
return !dir1.compare(dir2);
|
||||
#else
|
||||
struct stat st1, st2;
|
||||
if (stat(dir1.c_str(), &st1))
|
||||
return false;
|
||||
|
@ -562,6 +565,7 @@ static bool samedir(const string& dir1, const string& dir2)
|
|||
return true;
|
||||
}
|
||||
return false;
|
||||
#endif
|
||||
}
|
||||
|
||||
void UIPrefsDialog::on_showTrayIconCB_clicked()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue