mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
+ - 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:
parent
759162e9c9
commit
4603d95e13
53 changed files with 3006 additions and 2352 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue