- Force lists refresh before initially displaying the window to avoid lag

- Removed session tweaking on exit since it does not have any effect
This commit is contained in:
Christophe Dumez 2008-12-27 22:29:37 +00:00
parent 713c80451e
commit 87eee7029d
3 changed files with 3 additions and 10 deletions

View file

@ -231,6 +231,8 @@ GUI::GUI(QWidget *parent, QStringList torrentCmdLine) : QMainWindow(parent), dis
QMainWindow::statusBar()->addPermanentWidget(upSpeedLbl);
QMainWindow::statusBar()->addPermanentWidget(statusSep4);
QMainWindow::statusBar()->addPermanentWidget(ratioLbl);
// Force list update before showing
updateLists(true);
if(!settings.value(QString::fromUtf8("Preferences/General/StartMinimized"), false).toBool()) {
show();
}

View file

@ -87,15 +87,6 @@ bittorrent::~bittorrent() {
/*saveDHTEntry();
saveSessionState();
saveFastResumeData();*/
// Set Session settings
session_settings ss;
ss.tracker_receive_timeout = 1;
ss.stop_tracker_timeout = 1;
ss.tracker_completion_timeout = 1;
ss.piece_timeout = 1;
ss.peer_timeout = 1;
ss.urlseed_timeout = 1;
s->set_settings(ss);
// Disable directory scanning
disableDirectoryScanning();
// Delete our objects

View file

@ -93,7 +93,7 @@ DEFINES += NDEBUG
icon192
}
QMAKE_CXXFLAGS_RELEASE += -fwrapv
QMAKE_CXXFLAGS_DEBUG += -fwrapv
QMAKE_CXXFLAGS_DEBUG += -fwrapv -O0
CONFIG += link_pkgconfig
PKGCONFIG += "libtorrent-rasterbar libcurl"