mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
graphics/nomacs: fix logic
This commit is contained in:
parent
1f97c687a7
commit
484074a250
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=506108
1 changed files with 19 additions and 0 deletions
19
graphics/nomacs/files/patch-src_DkCore_DkPluginManager.cpp
Normal file
19
graphics/nomacs/files/patch-src_DkCore_DkPluginManager.cpp
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
/wrkdirs/usr/ports/graphics/nomacs/work/nomacs-3.6.1/ImageLounge/src/DkCore/DkPluginManager.cpp:371:13: warning: '&&' within '||' [-Wlogical-op-parentheses]
|
||||||
|
else if (p && p->interfaceType() == DkPluginInterface::interface_basic || p->interfaceType() == DkPluginInterface::interface_batch) {
|
||||||
|
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~
|
||||||
|
/wrkdirs/usr/ports/graphics/nomacs/work/nomacs-3.6.1/ImageLounge/src/DkCore/DkPluginManager.cpp:371:13: note: place parentheses around the '&&' expression to silence this warning
|
||||||
|
else if (p && p->interfaceType() == DkPluginInterface::interface_basic || p->interfaceType() == DkPluginInterface::interface_batch) {
|
||||||
|
^
|
||||||
|
( )
|
||||||
|
|
||||||
|
--- src/DkCore/DkPluginManager.cpp.orig 2019-07-07 07:04:23 UTC
|
||||||
|
+++ src/DkCore/DkPluginManager.cpp
|
||||||
|
@@ -368,7 +368,7 @@ void DkPluginContainer::run() {
|
||||||
|
connect(vPlugin->getViewPort(), SIGNAL(showToolbar(QToolBar*, bool)), vPlugin->getMainWindow(), SLOT(showToolbar(QToolBar*, bool)));
|
||||||
|
emit runPlugin(vPlugin, false);
|
||||||
|
}
|
||||||
|
- else if (p && p->interfaceType() == DkPluginInterface::interface_basic || p->interfaceType() == DkPluginInterface::interface_batch) {
|
||||||
|
+ else if (p && (p->interfaceType() == DkPluginInterface::interface_basic || p->interfaceType() == DkPluginInterface::interface_batch)) {
|
||||||
|
|
||||||
|
QAction* a = qobject_cast<QAction*>(QObject::sender());
|
||||||
|
|
Loading…
Add table
Reference in a new issue