mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
Merge Win32 fixes from stable branch
This commit is contained in:
parent
4e1366bf0d
commit
b719bfaecb
5 changed files with 95 additions and 24 deletions
|
@ -1538,6 +1538,9 @@ void Bittorrent::addConsoleMessage(QString msg, QString) {
|
|||
if(consoleMessages.size() > 100) {
|
||||
consoleMessages.removeFirst();
|
||||
}
|
||||
#ifdef Q_WS_WIN
|
||||
msg = msg.replace("/", "\\");
|
||||
#endif
|
||||
consoleMessages.append(QString::fromUtf8("<font color='grey'>")+ QDateTime::currentDateTime().toString(QString::fromUtf8("dd/MM/yyyy hh:mm:ss")) + QString::fromUtf8("</font> - <font color='") + color.name() +QString::fromUtf8("'><i>") + msg + QString::fromUtf8("</i></font>"));
|
||||
#endif
|
||||
emit newConsoleMessage(QDateTime::currentDateTime().toString("dd/MM/yyyy hh:mm:ss") + " - " + msg);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue