Add the ability to rename PCs
This commit is contained in:
parent
0d9d0845f5
commit
b75f662c41
7 changed files with 85 additions and 1 deletions
|
|
@ -416,6 +416,19 @@ void ComputerManager::deleteHost(NvComputer* computer)
|
|||
QThreadPool::globalInstance()->start(new DeferredHostDeletionTask(this, computer));
|
||||
}
|
||||
|
||||
void ComputerManager::renameHost(NvComputer* computer, QString name)
|
||||
{
|
||||
{
|
||||
QWriteLocker(&computer->lock);
|
||||
|
||||
computer->name = name;
|
||||
computer->hasCustomName = true;
|
||||
}
|
||||
|
||||
// Notify the UI of the state change
|
||||
handleComputerStateChanged(computer);
|
||||
}
|
||||
|
||||
void ComputerManager::handleAboutToQuit()
|
||||
{
|
||||
QWriteLocker lock(&m_Lock);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue