diff options
| author | Jeremy Rimpo <jeremy.rimpo@servermonkey.com> | 2017-10-30 17:45:03 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-10-30 17:45:03 -0500 |
| commit | 5cb0d1cb3d8e003d8a58ddb180cf3c1f58241580 (patch) | |
| tree | 54b755f6d92bbcbb375884e63e7657a94eb0b54b /src/mainwindow.cpp | |
| parent | 88452e5d76467fc687a9c4d6b6aaf7381d2463e1 (diff) | |
| parent | d53591c6c9c2702d361a70417f37f4508fc43552 (diff) | |
Merge pull request #2 from Al12rs/QT5.7
Merge upstream + potential while fix
Diffstat (limited to 'src/mainwindow.cpp')
| -rw-r--r-- | src/mainwindow.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 158e32d1..ace7dbd8 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -1944,9 +1944,10 @@ void MainWindow::fileMoved(const QString &filePath, const QString &oldOriginName QString fullNewPath = ToQString(newOrigin.getPath()) + "\\" + filePath;
WIN32_FIND_DATAW findData;
- ::FindFirstFileW(ToWString(fullNewPath).c_str(), &findData);
-
+ HANDLE hFind;
+ hFind = ::FindFirstFileW(ToWString(fullNewPath).c_str(), &findData);
filePtr->addOrigin(newOrigin.getID(), findData.ftCreationTime, L"");
+ FindClose(hFind);
}
if (m_OrganizerCore.directoryStructure()->originExists(ToWString(oldOriginName))) {
FilesOrigin &oldOrigin = m_OrganizerCore.directoryStructure()->getOriginByName(ToWString(oldOriginName));
|
