mirror of
https://github.com/KDE/latte-dock.git
synced 2025-02-05 17:47:23 +03:00
validate screen ids and store them properly
BUG:434343
This commit is contained in:
parent
32f4c3f7a1
commit
76b6317f9e
@ -226,7 +226,9 @@ void ScreenPool::save()
|
||||
|
||||
for (int i=0; i<m_screensTable.rowCount(); ++i) {
|
||||
Data::Screen screenRecord = m_screensTable[i];
|
||||
m_configGroup.writeEntry(screenRecord.id, screenRecord.serialize());
|
||||
if (screenRecord.id.toInt() >= 10) {
|
||||
m_configGroup.writeEntry(screenRecord.id, screenRecord.serialize());
|
||||
}
|
||||
}
|
||||
|
||||
//write to disck every 10 seconds at most
|
||||
@ -246,7 +248,7 @@ void ScreenPool::insertScreenMapping(const QString &connector)
|
||||
qDebug() << "add connector..." << connector;
|
||||
|
||||
Data::Screen screenRecord;
|
||||
screenRecord.id = firstAvailableId();
|
||||
screenRecord.id = QString::number(firstAvailableId());
|
||||
screenRecord.name = connector;
|
||||
|
||||
//! update screen geometry
|
||||
|
Loading…
x
Reference in New Issue
Block a user