Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Plasma Desktop
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
3
Issues
3
List
Boards
Labels
Service Desk
Milestones
Merge Requests
41
Merge Requests
41
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Plasma
Plasma Desktop
Commits
e8c4c395
Commit
e8c4c395
authored
Nov 15, 2017
by
Kai Uwe Broulik
🍇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use Qt.callLater instead of creating a Timer
Differential Revision:
https://phabricator.kde.org/D8744
parent
b985b743
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
applets/kicker/package/contents/ui/ItemListDialog.qml
applets/kicker/package/contents/ui/ItemListDialog.qml
+3
-3
containments/desktop/package/contents/ui/FolderViewDialog.qml
...ainments/desktop/package/contents/ui/FolderViewDialog.qml
+3
-3
No files found.
applets/kicker/package/contents/ui/ItemListDialog.qml
View file @
e8c4c395
...
...
@@ -75,9 +75,9 @@ Kicker.SubMenu {
}
function
delayedDestroy
()
{
var
timer
=
Qt
.
createQmlObject
(
'
import QtQuick 2.0; Timer { onTriggered: itemDialog.destroy() }
'
,
itemDialog
);
timer
.
interval
=
0
;
timer
.
start
(
);
Qt
.
callLater
(
function
()
{
itemDialog
.
destroy
()
;
}
);
}
...
...
containments/desktop/package/contents/ui/FolderViewDialog.qml
View file @
e8c4c395
...
...
@@ -118,9 +118,9 @@ Folder.SubDialog {
}
function
delayedDestroy
()
{
var
timer
=
Qt
.
createQmlObject
(
'
import QtQuick 2.0; Timer { onTriggered: itemDialog.destroy() }
'
,
itemDialog
);
timer
.
interval
=
0
;
timer
.
start
(
);
Qt
.
callLater
(
function
()
{
itemDialog
.
destroy
()
;
}
);
}
Component.onDestruction
:
{
...
...
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