[Web UI] Fix max_ratio precision. Closes #4707

This commit is contained in:
ngosang 2016-01-30 00:56:40 +01:00
parent 193913129f
commit 87dc9a4a18
3 changed files with 4 additions and 4 deletions

View file

@ -969,7 +969,7 @@ void Preferences::setTrackersList(const QString &val)
qreal Preferences::getGlobalMaxRatio() const
{
return value("Preferences/Bittorrent/MaxRatio", -1).toDouble();
return value("Preferences/Bittorrent/MaxRatio", -1).toReal();
}
void Preferences::setGlobalMaxRatio(qreal ratio)