Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Network
KRDC
Commits
afe5ce7c
Commit
afe5ce7c
authored
Jul 25, 2022
by
Aleix Pol Gonzalez
🐧
Browse files
MainWindow: Simplify views management
Removes unnecessary look-ups
parent
422a1e96
Changes
1
Hide whitespace changes
Inline
Side-by-side
mainwindow.cpp
View file @
afe5ce7c
...
...
@@ -598,8 +598,7 @@ void MainWindow::closeTab(int index)
bool
isNewConnectionPage
=
widget
==
m_newConnectionWidget
;
if
(
!
isNewConnectionPage
)
{
RemoteView
*
view
=
m_remoteViewMap
.
value
(
widget
);
m_remoteViewMap
.
remove
(
m_remoteViewMap
.
key
(
view
));
RemoteView
*
view
=
m_remoteViewMap
.
take
(
widget
);
view
->
startQuitting
();
widget
->
deleteLater
();
}
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment