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
kdeconnect-kde
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
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
Weixuan Xiao
kdeconnect-kde
Commits
af02ca7c
Commit
af02ca7c
authored
Aug 08, 2013
by
Albert Vaca Cintora
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check when empty to avoid a crash
parent
fc3e2eff
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
kcm/devicesmodel.cpp
kcm/devicesmodel.cpp
+5
-3
No files found.
kcm/devicesmodel.cpp
View file @
af02ca7c
...
...
@@ -62,9 +62,11 @@ void DevicesModel::deviceAdded(const QString& id)
//Full refresh
Q_UNUSED
(
id
);
if
(
m_deviceList
.
count
()
>
0
)
{
beginRemoveRows
(
QModelIndex
(),
0
,
m_deviceList
.
count
()
-
1
);
m_deviceList
.
clear
();
endRemoveRows
();
}
QList
<
QString
>
deviceIds
=
m_dbusInterface
->
devices
();
Q_FOREACH
(
const
QString
&
id
,
deviceIds
)
{
beginInsertRows
(
QModelIndex
(),
rowCount
(),
rowCount
()
+
1
);
...
...
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