mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-24 18:08:44 +00:00
Changed: Moved CCOMHelper to utils.h/cpp, see #279
--HG-- branch : develop
This commit is contained in:
parent
1e474e9ebd
commit
f17e0c2dc1
1 changed files with 0 additions and 20 deletions
|
@ -80,26 +80,6 @@ bool copyInstallerFiles(const QStringList &files, const QString &destination)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef Q_OS_WIN
|
|
||||||
class CCOMHelper
|
|
||||||
{
|
|
||||||
bool m_mustUninit;
|
|
||||||
|
|
||||||
public:
|
|
||||||
CCOMHelper()
|
|
||||||
{
|
|
||||||
// to fix the bug with QFileDialog::getExistingDirectory hanging under Windows
|
|
||||||
m_mustUninit = SUCCEEDED(CoInitialize(NULL));
|
|
||||||
}
|
|
||||||
|
|
||||||
~CCOMHelper()
|
|
||||||
{
|
|
||||||
// only call CoUninitialize if CoInitialize succeeded
|
|
||||||
if (m_mustUninit) CoUninitialize();
|
|
||||||
}
|
|
||||||
};
|
|
||||||
#endif
|
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
#if defined(_MSC_VER) && defined(_DEBUG)
|
#if defined(_MSC_VER) && defined(_DEBUG)
|
||||||
|
|
Loading…
Reference in a new issue