Skip to content

Commit

Permalink
remove Reset IPFilter When Exit Option
Browse files Browse the repository at this point in the history
Signed-off-by: c0re100 <[email protected]>
  • Loading branch information
c0re100 committed Feb 22, 2018
1 parent bfbf9f4 commit bde1bbe
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 15 deletions.
4 changes: 0 additions & 4 deletions src/gui/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,6 @@ MainWindow::MainWindow(QWidget *parent)
m_ui->actionAutoHibernate->setDisabled(true);
#endif
m_ui->actionAutoExit->setChecked(pref->shutdownqBTWhenDownloadsComplete());
m_ui->actionResetIPFilter->setChecked(false);

if (!autoShutdownGroup->checkedAction())
m_ui->actionAutoShutdownDisabled->setChecked(true);
Expand Down Expand Up @@ -1170,9 +1169,6 @@ void MainWindow::closeEvent(QCloseEvent *e)
m_systrayIcon->hide();
#endif
// Accept exit
if(m_ui->actionResetIPFilter->isChecked()) {
BitTorrent::Session::instance()->unbanIP();
}
e->accept();
qApp->exit();
}
Expand Down
11 changes: 1 addition & 10 deletions src/gui/mainwindow.ui
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@
<addaction name="actionOptions"/>
<addaction name="separator"/>
<addaction name="menuAutoShutdownOnDownloadsCompletion"/>
<addaction name="actionResetIPFilter"/>
</widget>
<widget class="QMenu" name="menuFile">
<property name="title">
Expand Down Expand Up @@ -472,15 +471,7 @@
<property name="text">
<string>Close Window</string>
</property>
</action>
<action name="actionResetIPFilter">
<property name="checkable">
<bool>true</bool>
</property>
<property name="text">
<string>Reset IPFilter When Exit</string>
</property>
</action>
</action>
</widget>
<resources/>
<connections/>
Expand Down
2 changes: 1 addition & 1 deletion version.pri
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ PROJECT_NAME = qbittorrent
VER_MAJOR = 4
VER_MINOR = 0
VER_BUGFIX = 4
VER_BUILD = 1
VER_BUILD = 2
VER_STATUS = # Should be empty for stable releases!

# Don't touch the rest part
Expand Down

0 comments on commit bde1bbe

Please sign in to comment.