Fix some compile warnings in macOS build (#2027)
* Fix some compile warnings in macOS build * Update macOS Info.plist template
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
// SPDX-FileCopyrightText: 2017-2019 Alejandro Sirgo Rica & Contributors
|
||||
|
||||
// Based on Lightscreen areadialog.cpp, Copyright 2017 Christian Kaiser
|
||||
@@ -506,7 +506,7 @@ void CaptureWidget::showColorPicker(const QPoint& pos)
|
||||
{
|
||||
// Try to select new object if current pos out of active object
|
||||
auto toolItem = activeToolObject();
|
||||
if (!toolItem || toolItem && !toolItem->boundingRect().contains(pos)) {
|
||||
if (!toolItem || (toolItem && !toolItem->boundingRect().contains(pos))) {
|
||||
selectToolItemAtPos(pos);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user