Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
jami-client-windows
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
savoirfairelinux
jami-client-windows
Commits
6019918a
Commit
6019918a
authored
Aug 8, 2019
by
Yang Wang
Committed by
Andreas Traczyk
Aug 13, 2019
Browse files
Options
Downloads
Patches
Plain Diff
system tray: fix icon behavior
Change-Id: I4b093272431701a79c9ee9bbcf745fd50e4202e3 Gitlab: #494
parent
130a7a46
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
mainwindow.cpp
+1
-2
1 addition, 2 deletions
mainwindow.cpp
with
1 addition
and
2 deletions
mainwindow.cpp
+
1
−
2
View file @
6019918a
...
@@ -85,7 +85,6 @@ MainWindow::MainWindow(QWidget* parent)
...
@@ -85,7 +85,6 @@ MainWindow::MainWindow(QWidget* parent)
[
this
]()
{
[
this
]()
{
if
(
auto
currentWidget
=
dynamic_cast
<
NavWidget
*>
(
ui
->
navStack
->
currentWidget
()))
{
if
(
auto
currentWidget
=
dynamic_cast
<
NavWidget
*>
(
ui
->
navStack
->
currentWidget
()))
{
emit
currentWidget
->
NavigationRequested
(
ScreenEnum
::
SetttingsScreen
);
emit
currentWidget
->
NavigationRequested
(
ScreenEnum
::
SetttingsScreen
);
setWindowState
(
Qt
::
WindowActive
);
showWindow
();
showWindow
();
}
}
});
});
...
@@ -233,7 +232,7 @@ bool MainWindow::nativeEvent(const QByteArray& eventType, void* message, long* r
...
@@ -233,7 +232,7 @@ bool MainWindow::nativeEvent(const QByteArray& eventType, void* message, long* r
void
MainWindow
::
trayActivated
(
QSystemTrayIcon
::
ActivationReason
reason
)
void
MainWindow
::
trayActivated
(
QSystemTrayIcon
::
ActivationReason
reason
)
{
{
if
(
reason
!=
QSystemTrayIcon
::
ActivationReason
::
Context
)
if
(
reason
!=
QSystemTrayIcon
::
ActivationReason
::
Context
)
this
->
sh
ow
();
showWind
ow
();
}
}
void
MainWindow
::
showWindow
()
void
MainWindow
::
showWindow
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment