diff --git a/global.cpp b/global.cpp index 78a75ecd..612a9c85 100644 --- a/global.cpp +++ b/global.cpp @@ -217,7 +217,7 @@ void Global::setup(StartupConfig startupConfig, bool guiAvailable) { // QWebkit DPI is hard coded to 96. Hence, we calculate the correct // font size based on desktop logical DPI. settings->setFontSize(QWebSettings::DefaultFontSize, - defaultFontSize * (QApplication::desktop()->logicalDpiX() / 96.0) + int(defaultFontSize * (QApplication::desktop()->logicalDpiX() / 96.0)) ); } if (defaultFont != "" && defaultFontSize <= 0 && this->guiAvailable) { diff --git a/main.cpp b/main.cpp index abebae42..ad58c1b4 100644 --- a/main.cpp +++ b/main.cpp @@ -276,7 +276,7 @@ int main(int argc, char *argv[]) if (host.trimmed() != "") proxy.setHostName(host.trimmed()); if (port > 0) - proxy.setPort(port); + proxy.setPort(quint16(port)); if (user.trimmed() != "") proxy.setUser(user.trimmed()); if (password.trimmed() != "")