Changeset View
Changeset View
Standalone View
Standalone View
dbusinterface.cpp
Show First 20 Lines • Show All 439 Lines • ▼ Show 20 Line(s) | |||||
440 | 440 | | |||
441 | void VirtualDesktopManagerDBusInterface::setNavigationWrappingAround(bool wraps) | 441 | void VirtualDesktopManagerDBusInterface::setNavigationWrappingAround(bool wraps) | ||
442 | { | 442 | { | ||
443 | if (m_manager->isNavigationWrappingAround() == wraps) { | 443 | if (m_manager->isNavigationWrappingAround() == wraps) { | ||
444 | return; | 444 | return; | ||
445 | } | 445 | } | ||
446 | 446 | | |||
447 | m_manager->setNavigationWrappingAround(wraps); | 447 | m_manager->setNavigationWrappingAround(wraps); | ||
448 | m_manager->save(); | ||||
graesslin: This save doesn't make sense. The option is not saved there, so that save does not work.
I… | |||||
mart: removed on last version | |||||
448 | } | 449 | } | ||
449 | 450 | | |||
450 | bool VirtualDesktopManagerDBusInterface::isNavigationWrappingAround() const | 451 | bool VirtualDesktopManagerDBusInterface::isNavigationWrappingAround() const | ||
451 | { | 452 | { | ||
452 | return m_manager->isNavigationWrappingAround(); | 453 | return m_manager->isNavigationWrappingAround(); | ||
453 | } | 454 | } | ||
454 | 455 | | |||
455 | DBusDesktopDataVector VirtualDesktopManagerDBusInterface::desktops() const | 456 | DBusDesktopDataVector VirtualDesktopManagerDBusInterface::desktops() const | ||
Show All 10 Lines | 457 | { | |||
466 | ); | 467 | ); | ||
467 | 468 | | |||
468 | return desktopVect; | 469 | return desktopVect; | ||
469 | } | 470 | } | ||
470 | 471 | | |||
471 | void VirtualDesktopManagerDBusInterface::createDesktop(uint position, const QString &name) | 472 | void VirtualDesktopManagerDBusInterface::createDesktop(uint position, const QString &name) | ||
472 | { | 473 | { | ||
473 | m_manager->createVirtualDesktop(position + 1, name); | 474 | m_manager->createVirtualDesktop(position + 1, name); | ||
474 | } | 475 | } | ||
davidedmundson: VirtualDesktopManager::createVirtualDesktop
calls save on line 464 | |||||
475 | 476 | | |||
476 | void VirtualDesktopManagerDBusInterface::setDesktopName(const QString &id, const QString &name) | 477 | void VirtualDesktopManagerDBusInterface::setDesktopName(const QString &id, const QString &name) | ||
477 | { | 478 | { | ||
478 | VirtualDesktop *vd = m_manager->desktopForId(id.toUtf8()); | 479 | VirtualDesktop *vd = m_manager->desktopForId(id.toUtf8()); | ||
479 | if (!vd) { | 480 | if (!vd) { | ||
480 | return; | 481 | return; | ||
481 | } | 482 | } | ||
482 | if (vd->name() == name) { | 483 | if (vd->name() == name) { | ||
Show All 13 Lines |
This save doesn't make sense. The option is not saved there, so that save does not work.
I really don't understand what you want to achieve.