diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/client/toolbar/toolbar.cpp | 5 | ||||
-rw-r--r-- | src/server/mainwindow/mainwindow.cpp | 5 | ||||
-rw-r--r-- | src/server/net/discoverylistener.cpp | 1 |
3 files changed, 1 insertions, 10 deletions
diff --git a/src/client/toolbar/toolbar.cpp b/src/client/toolbar/toolbar.cpp index f620609..af8db64 100644 --- a/src/client/toolbar/toolbar.cpp +++ b/src/client/toolbar/toolbar.cpp @@ -448,11 +448,8 @@ void Toolbar::showBar() const QRect primaryScreen = desktop.screenGeometry(); move(x(), primaryScreen.top()); } +/** call script to switch to workspace of the manager */ void Toolbar::onBtnManager() { - /* TODO */ - qDebug() << "onBtnManager()"; - - /* call script to switch to workspace of the manager */ QProcess switchP; if (_onWorkspace2) { switchP.start("/bin/sh", QStringList() << "/opt/openslx/pvs2/switchBack.sh"); diff --git a/src/server/mainwindow/mainwindow.cpp b/src/server/mainwindow/mainwindow.cpp index b76534e..76f5e00 100644 --- a/src/server/mainwindow/mainwindow.cpp +++ b/src/server/mainwindow/mainwindow.cpp @@ -187,9 +187,7 @@ float distance(QPoint a, QPoint b) { */ void MainWindow::placeFrameInFreeSlot(ConnectionFrame* frame, QPoint preferred) { - qDebug() << "placeFrameInFreeSlot(preferred = " << preferred << ")"; const QSize& clientSize = Global::getCurrentRoom()->clientSize; - // TODO: Fix this qDebug() << "clientSize: " << &clientSize /* Get occupied cell of each frame and store status in an array */ bool grid[_tilesX][_tilesY]; memset(grid, 0, sizeof(bool) * _tilesX * _tilesY); // set everything to false @@ -550,9 +548,6 @@ void MainWindow::resizeEvent(QResizeEvent* e) const Room* room = Global::getCurrentRoom(); const QSize& clientSize = room->clientSize; - // TODO: Do I still need this? - // if (room == NULL) {return; } /* Nothing to do here */ - // QSize& clientSize = room->clientSize; if (ui->frmRoom->size().width() < 100 || ui->frmRoom->size().height() < 100 || _tilesX <= 0 || _tilesY <= 0) { return; } QSize newGridSize = room->gridSize; diff --git a/src/server/net/discoverylistener.cpp b/src/server/net/discoverylistener.cpp index c0b80b8..e205c77 100644 --- a/src/server/net/discoverylistener.cpp +++ b/src/server/net/discoverylistener.cpp @@ -159,7 +159,6 @@ void DiscoveryListener::onReadyRead() if (!Network::isAddressInList(QString::fromUtf8(iplist), addr.toString())) continue; // If so, check if the submitted hash seems valid - // if (Global::getCurrentRoom() == "") { continue; } // TODO: Can we remove this check? if (genSha1(&Global::sessionNameArray(), &salt1, &iplist) != hash && !(Global::getCurrentRoom()->clientPositions.contains(addr.toString()))) { |