+ - FEATURE: Added a menu action to visit qBittorrent website

+    - FEATURE: Added a menu action to report a bug in qBittorrent
+    - FEATURE: User is warned when hard drive becomes full and downloads are paused
+    - FEATURE: Seeds / Leechers are displayed in download list as well as in torrent properties
+    - BUGFIX: Save directory was reset to default when filtering files in torrent
+    - BUGFIX: Force a refresh of download list when the window is shown (avoid delay)
This commit is contained in:
Christophe Dumez 2006-12-27 03:19:38 +00:00
parent 759162e9c9
commit 4603d95e13
53 changed files with 3006 additions and 2352 deletions

View file

@ -39,11 +39,14 @@ class misc : public QObject{
public:
// Convert any type of variable to C++ String
template <class T> static std::string toString(const T& x){
// convert=true will convert -1 to 0
template <class T> static std::string toString(const T& x, bool convert=false){
std::ostringstream o;
if(!(o<<x)) {
throw std::runtime_error("::toString()");
}
if(o.str() == "-1" && convert)
return "0";
return o.str();
}