diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 10db2b462..d9282ea7f 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -135,10 +135,6 @@ MainWindow::MainWindow(QWidget *parent, QStringList torrentCmdLine) : QMainWindo
QAction *defineUiLockPasswdAct = lockMenu->addAction(tr("Set the password..."));
connect(defineUiLockPasswdAct, SIGNAL(triggered()), this, SLOT(defineUILockPassword()));
actionLock_qBittorrent->setMenu(lockMenu);
- prioSeparator = toolBar->insertSeparator(actionDecreasePriority);
- prioSeparator2 = menu_Edit->insertSeparator(actionDecreasePriority);
- prioSeparator->setVisible(false);
- prioSeparator2->setVisible(false);
// Fix Tool bar layout
toolBar->layout()->setSpacing(TOOLBAR_SPACING);
// Creating Bittorrent session
@@ -186,6 +182,9 @@ MainWindow::MainWindow(QWidget *parent, QStringList torrentCmdLine) : QMainWindo
spacer->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
toolBar->insertWidget(actionLock_qBittorrent, spacer);
+ prioSeparator = toolBar->insertSeparator(actionDecreasePriority);
+ prioSeparatorMenu = menu_Edit->insertSeparator(actionDecreasePriority);
+
// Transfer list slots
connect(actionStart, SIGNAL(triggered()), transferList, SLOT(startSelectedTorrents()));
connect(actionStart_All, SIGNAL(triggered()), QBtSession::instance(), SLOT(resumeAllTorrents()));
@@ -968,7 +967,7 @@ void MainWindow::loadPreferences(bool configure_session) {
actionDecreasePriority->setVisible(true);
actionIncreasePriority->setVisible(true);
prioSeparator->setVisible(true);
- prioSeparator2->setVisible(true);
+ prioSeparatorMenu->setVisible(true);
toolBar->layout()->setSpacing(TOOLBAR_SPACING);
}
} else {
@@ -977,7 +976,7 @@ void MainWindow::loadPreferences(bool configure_session) {
actionDecreasePriority->setVisible(false);
actionIncreasePriority->setVisible(false);
prioSeparator->setVisible(false);
- prioSeparator2->setVisible(false);
+ prioSeparatorMenu->setVisible(false);
toolBar->layout()->setSpacing(TOOLBAR_SPACING);
}
}
diff --git a/src/mainwindow.h b/src/mainwindow.h
index d9ae8b941..0d39d2e91 100644
--- a/src/mainwindow.h
+++ b/src/mainwindow.h
@@ -172,7 +172,7 @@ private:
QShortcut *switchRSSShortcut;
// Widgets
QAction *prioSeparator;
- QAction *prioSeparator2;
+ QAction *prioSeparatorMenu;
QSplitter *hSplitter;
QSplitter *vSplitter;
// Search
diff --git a/src/mainwindow.ui b/src/mainwindow.ui
index 490b73cf0..d834cf657 100644
--- a/src/mainwindow.ui
+++ b/src/mainwindow.ui
@@ -40,8 +40,8 @@
-
+
@@ -127,9 +127,9 @@
-
+
@@ -227,7 +227,7 @@
Decrease priority
- false
+ true
@@ -235,7 +235,7 @@
Increase priority
- false
+ true