summaryrefslogtreecommitdiffstats
path: root/src/gui/frame.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/frame.cpp')
-rw-r--r--src/gui/frame.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/gui/frame.cpp b/src/gui/frame.cpp
index 561f3ce..aa6b0cb 100644
--- a/src/gui/frame.cpp
+++ b/src/gui/frame.cpp
@@ -224,8 +224,6 @@ void Frame::paintEvent(QPaintEvent *event)
void Frame::slotClicked()
{
- //qDebug() << "clickableLabel :: Clicked, searching for" << ip;
-
if (ip != "") {
for (int i=0; i<MainWindow::getConnectionList()->model->rowCount(QModelIndex()); i++)
{
@@ -234,6 +232,12 @@ void Frame::slotClicked()
{
MainWindow::getConnectionList()->selectRow(i);
MainWindow::getConnectionList()->setCurrentIndex(MainWindow::getConnectionList()->currentIndex());
+
+ // red border for selected client
+ QList<ConnectionFrame*> clients = MainWindow::getConnectionWindow()->getAllFrameOnWindow();
+ foreach (ConnectionFrame *client, clients)
+ client->setStyleSheet(STYLE_DEFAULT);
+ _cFrame->setStyleSheet(STYLE_SELECTED);
break;
}
}