Don't show the progress bar in AddNewTorrent dialog when not necessary.

This commit is contained in:
sledgehammer999
2013-09-01 16:03:01 +03:00
parent 4f99b04a42
commit 17c122e5ad
3 changed files with 26 additions and 16 deletions

View File

@@ -36,7 +36,6 @@
#include <QUrl>
#include <libtorrent/torrent_info.hpp>
#include "qtorrenthandle.h"
#include <QProgressBar>
QT_BEGIN_NAMESPACE
namespace Ui {
@@ -81,7 +80,7 @@ private:
void updateFileNameInSavePaths(const QString& new_filename);
void loadState();
void saveState();
void setMetadataProgressIndicator(bool enabled, const QString &labelText = QString());
void setMetadataProgressIndicator(bool visibleIndicator, const QString &labelText = QString());
private:
Ui::AddNewTorrentDialog *ui;
@@ -97,7 +96,6 @@ private:
QStringList m_filesPath;
bool m_hasRenamedFile;
QShortcut *editHotkey;
QProgressBar *m_progress;
};
#endif // ADDNEWTORRENTDIALOG_H