Commits

Shlomi Fish  committed dd07665

Conver numDesktops to be based on desktopNames.

  • Participants
  • Parent commits 89b5081

Comments (0)

Files changed (1)

File set-kde-virtual-desktops-names/set_names.cpp

     KCmdLineArgs::init( argc, argv, &aboutData );
     KApplication app;
 
-    int numDesktops = 8;
-
     QStringList desktopNames;
 
     desktopNames << "Main";
     desktopNames << "Config";
     desktopNames << "Desktop 7";
     desktopNames << "Games";
+
+    int numDesktops = desktopNames.count();
+
 #ifdef Q_WS_X11
     NETRootInfo info( QX11Info::display(), NET::NumberOfDesktops | NET::DesktopNames );
     // set desktop names