mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-19 08:13:21 +00: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
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…
Reference in New Issue
Block a user