Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Graphics
Krita
Commits
4c9cd69c
Commit
4c9cd69c
authored
Oct 07, 2021
by
Sharaf Zaman
Browse files
Crashfix: closing and reopening popup palette
BUG:443402
(cherry picked from commit
626dec9f
)
parent
7dd75f9d
Pipeline
#86316
skipped with stage
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
libs/ui/kis_popup_palette.cpp
View file @
4c9cd69c
...
...
@@ -120,6 +120,9 @@ KisPopupPalette::KisPopupPalette(KisViewManager* viewManager, KisCoordinatesConv
connect
(
m_resourceManager
,
SIGNAL
(
updatePalettes
()),
this
,
SLOT
(
slotUpdate
()));
connect
(
m_resourceManager
,
SIGNAL
(
hidePalettes
()),
this
,
SIGNAL
(
finished
()));
// Instances of `this` rely on finished() to be detached and its lifetime is associated with `parent`
connect
(
parent
,
SIGNAL
(
destroyed
(
QObject
*
)),
this
,
SIGNAL
(
finished
()),
Qt
::
DirectConnection
);
setCursor
(
Qt
::
ArrowCursor
);
setMouseTracking
(
true
);
setHoveredPreset
(
-
1
);
...
...
libs/ui/kis_popup_palette.h
View file @
4c9cd69c
...
...
@@ -182,7 +182,7 @@ Q_SIGNALS:
void
sigChangefGColor
(
const
KoColor
&
);
void
sigUpdateCanvas
();
void
zoomLevelChanged
(
int
);
void
finished
();
// KisPopupWidgetInterface.
void
finished
()
override
;
// KisPopupWidgetInterface.
public
Q_SLOTS
:
void
slotUpdateIcons
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment