Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion global.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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() != "")
Expand Down