Skip to content

Commit

Permalink
Gui: [skip ci] fix possible warning
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Sep 23, 2021
1 parent 52c4ad9 commit 00bb1d0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/Gui/PythonWrapper.cpp
Expand Up @@ -25,11 +25,11 @@
#ifndef _PreComp_
# include <algorithm>
# include <limits>
# include <QWidget>
# include <QIcon>
# include <QDir>
#endif
#include <QMetaType>
#include <QWidget>
#include <QIcon>
#include <QDir>

// Uncomment this block to remove PySide C++ support and switch to its Python interface
//#undef HAVE_SHIBOKEN
Expand Down Expand Up @@ -427,6 +427,8 @@ Py::Object PythonWrapper::fromQDir(const QDir& dir)
const_cast<QDir*>(&dir), false, false, typeName);
if (pyobj)
return Py::asObject(pyobj);
#else
Q_UNUSED(dir)
#endif
throw Py::RuntimeError("Failed to wrap icon");
}
Expand Down

0 comments on commit 00bb1d0

Please sign in to comment.