diff --git a/src/GUI.cpp b/src/GUI.cpp
index 87fea7fe7..31f953ed0 100644
--- a/src/GUI.cpp
+++ b/src/GUI.cpp
@@ -113,8 +113,9 @@ GUI::GUI(QWidget *parent, QStringList torrentCmdLine) : QMainWindow(parent), dis
connecStatusLblIcon->setFrameShape(QFrame::NoFrame);
connecStatusLblIcon->setPixmap(QPixmap(QString::fromUtf8(":/Icons/skin/disconnected.png")));
connecStatusLblIcon->setToolTip(QString::fromUtf8("")+tr("Connection status:")+QString::fromUtf8("
")+tr("Offline")+QString::fromUtf8("
")+tr("No peers found...")+QString::fromUtf8(""));
- toolBar->insertWidget(actionDecreasePriority, connecStatusLblIcon);
- toolBar->insertSeparator(actionDecreasePriority);
+ toolBar->addWidget(connecStatusLblIcon);
+ prioSeparator = toolBar->insertSeparator(actionDecreasePriority);
+ prioSeparator->setVisible(false);
actionDelete_Permanently->setIcon(QIcon(QString::fromUtf8(":/Icons/skin/delete_perm.png")));
actionTorrent_Properties->setIcon(QIcon(QString::fromUtf8(":/Icons/skin/properties.png")));
actionCreate_torrent->setIcon(QIcon(QString::fromUtf8(":/Icons/skin/new.png")));
@@ -1120,6 +1121,7 @@ void GUI::configureSession(bool deleteOptions) {
finishedTorrentTab->hidePriorityColumn(false);
actionDecreasePriority->setVisible(true);
actionIncreasePriority->setVisible(true);
+ prioSeparator->setVisible(true);
toolBar->layout()->setSpacing(7);
}
int max_torrents = options->getMaxActiveTorrents();
@@ -1136,6 +1138,7 @@ void GUI::configureSession(bool deleteOptions) {
finishedTorrentTab->hidePriorityColumn(true);
actionDecreasePriority->setVisible(false);
actionIncreasePriority->setVisible(false);
+ prioSeparator->setVisible(false);
toolBar->layout()->setSpacing(7);
}
}
diff --git a/src/GUI.h b/src/GUI.h
index 8c0eb9e00..4cc075b9e 100644
--- a/src/GUI.h
+++ b/src/GUI.h
@@ -89,6 +89,7 @@ class GUI : public QMainWindow, private Ui::MainWindow{
QShortcut *switchDownShortcut;
QShortcut *switchUpShortcut;
QShortcut *switchRSSShortcut;
+ QAction *prioSeparator;
// Search
SearchEngine *searchEngine;
// RSS
diff --git a/src/MainWindow.ui b/src/MainWindow.ui
index 27975aae2..eb016ac5b 100644
--- a/src/MainWindow.ui
+++ b/src/MainWindow.ui
@@ -114,10 +114,11 @@
-
-
+
+
+