mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2026-11-27 12:27:04 -08:00
Add assert to make sure the temp file could be opened successfully.
This commit is contained in:
1 parent
40f194fe4b
commit
d826ae5daf
2 files changed
+4
-1
No files matched your search
+3
-1
@@ -108,6 +108,8 @@ void Config::createTempFileInstance()
|
||||
{
|
||||
Q_ASSERT(!m_instance);
|
||||
QTemporaryFile* tmpFile = new QTemporaryFile(qApp);
|
||||
tmpFile->open();
|
||||
bool openResult = tmpFile->open();
|
||||
Q_ASSERT(openResult);
|
||||
Q_UNUSED(openResult);
|
||||
m_instance = new Config(tmpFile->fileName(), tmpFile);
|
||||
}
|
||||
Reference in new issue
Block a user