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
Plasma
Plasma applet for NetworkManager
Commits
b28073d9
Commit
b28073d9
authored
Feb 10, 2022
by
Laurent Montel
Browse files
Use debug categorie here
parent
4ba0edf6
Changes
1
Hide whitespace changes
Inline
Side-by-side
kcm/kcm.cpp
View file @
b28073d9
...
...
@@ -127,7 +127,7 @@ KCMNetworkmanagement::KCMNetworkmanagement(QWidget *parent, const QVariantList &
if
(
uuid
.
startsWith
(
uuidArgumentMarker
))
{
uuid
=
uuid
.
replace
(
uuidArgumentMarker
,
QString
());
selectedConnection
=
NetworkManager
::
findConnectionByUuid
(
uuid
);
qDebug
()
<<
"Selecting user connection:"
<<
uuid
;
qDebug
(
PLASMA_NM_KCM_LOG
)
<<
"Selecting user connection:"
<<
uuid
;
break
;
}
}
...
...
@@ -138,7 +138,7 @@ KCMNetworkmanagement::KCMNetworkmanagement(QWidget *parent, const QVariantList &
NetworkManager
::
ActiveConnection
::
Ptr
activeConnection
=
NetworkManager
::
primaryConnection
();
if
(
activeConnection
&&
activeConnection
->
isValid
())
{
selectedConnection
=
activeConnection
->
connection
();
qDebug
()
<<
"Selecting active connection:"
<<
selectedConnection
->
uuid
();
qDebug
(
PLASMA_NM_KCM_LOG
)
<<
"Selecting active connection:"
<<
selectedConnection
->
uuid
();
}
}
...
...
@@ -177,7 +177,7 @@ KCMNetworkmanagement::KCMNetworkmanagement(QWidget *parent, const QVariantList &
const
NetworkManager
::
ConnectionSettings
::
ConnectionType
type
=
connection
->
settings
()
->
connectionType
();
if
(
UiUtils
::
isConnectionTypeSupported
(
type
))
{
selectedConnection
=
connection
;
qDebug
()
<<
"Selecting first connection:"
<<
connection
->
uuid
();
qDebug
(
PLASMA_NM_KCM_LOG
)
<<
"Selecting first connection:"
<<
connection
->
uuid
();
break
;
}
}
...
...
@@ -189,7 +189,7 @@ KCMNetworkmanagement::KCMNetworkmanagement(QWidget *parent, const QVariantList &
QMetaObject
::
invokeMethod
(
rootItem
,
"selectConnection"
,
Q_ARG
(
QVariant
,
settings
->
id
()),
Q_ARG
(
QVariant
,
selectedConnection
->
path
()));
}
}
else
{
qDebug
()
<<
"Cannot preselect a connection"
;
qDebug
(
PLASMA_NM_KCM_LOG
)
<<
"Cannot preselect a connection"
;
}
connect
(
NetworkManager
::
settingsNotifier
(),
...
...
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