Permalink
Browse files

Add a workaround for a bug in QNetWorkManager

  • Loading branch information...
boudewijnrempt committed Nov 16, 2018
1 parent cdc608d commit 19ba224692a52b1d5799fda308bed4b02ff38f7a
Showing with 3 additions and 0 deletions.
  1. +3 −0 krita/main.cc
@@ -135,6 +135,9 @@ extern "C" int main(int argc, char **argv)
qputenv("QT_QPA_PLATFORM", "xcb");
#endif

// Workaround a bug in QNetworkManager
qputenv("QT_BEARER_POLL_TIMEOUT", QByteArray::number(-1));

// A per-user unique string, without /, because QLocalServer cannot use names with a / in it
QString key = "Krita4" + QStandardPaths::writableLocation(QStandardPaths::HomeLocation).replace("/", "_");
key = key.replace(":", "_").replace("\\","_");

0 comments on commit 19ba224

Please sign in to comment.