diff --git a/chatterino.pro b/chatterino.pro index 522dea930..dd97cb271 100644 --- a/chatterino.pro +++ b/chatterino.pro @@ -33,7 +33,7 @@ equals(QMAKE_CXX, "clang++")|equals(QMAKE_CXX, "g++") { } # Icons -macx:ICON = resources/images/chatterino2.icns +#macx:ICON = resources/images/chatterino2.icns win32:RC_FILE = resources/windows.rc @@ -71,6 +71,8 @@ win32 { # OSX include directory macx { INCLUDEPATH += /usr/local/include + INCLUDEPATH += /usr/local/opt/openssl/include + LIBS += -L/usr/local/opt/openssl/lib } # Optional dependency on Windows SDK 7 diff --git a/src/providers/twitch/PubsubHelpers.hpp b/src/providers/twitch/PubsubHelpers.hpp index 3e92e332c..f9bc28a05 100644 --- a/src/providers/twitch/PubsubHelpers.hpp +++ b/src/providers/twitch/PubsubHelpers.hpp @@ -1,7 +1,7 @@ #pragma once #include "util/RapidjsonHelpers.hpp" - +#include "debug/Log.hpp" #include #include #include diff --git a/src/providers/twitch/TwitchChannel.cpp b/src/providers/twitch/TwitchChannel.cpp index da7a508d9..346ed1476 100644 --- a/src/providers/twitch/TwitchChannel.cpp +++ b/src/providers/twitch/TwitchChannel.cpp @@ -409,7 +409,7 @@ void TwitchChannel::refreshLiveStatus() //>>>>>>> 9bfbdefd2f0972a738230d5b95a009f73b1dd933 request.onSuccess( - [this, weak = this->weak_from_this()](auto result) -> Outcome { + [this, weak = weakOf(this)](auto result) -> Outcome { ChannelPtr shared = weak.lock(); if (!shared) return Failure; @@ -550,7 +550,7 @@ void TwitchChannel::refreshChatters() request.setCaller(QThread::currentThread()); request.onSuccess( - [this, weak = this->weak_from_this()](auto result) -> Outcome { + [this, weak = weakOf(this)](auto result) -> Outcome { // channel still exists? auto shared = weak.lock(); if (!shared) return Failure; diff --git a/src/widgets/BaseWindow.cpp b/src/widgets/BaseWindow.cpp index 32d470805..af97b224b 100644 --- a/src/widgets/BaseWindow.cpp +++ b/src/widgets/BaseWindow.cpp @@ -316,7 +316,7 @@ void BaseWindow::mousePressEvent(QMouseEvent *event) }; if (!recursiveCheckMouseTracking(widget)) { - Log("Start moving"); + log("Start moving"); this->moving = true; } } @@ -331,7 +331,7 @@ void BaseWindow::mouseReleaseEvent(QMouseEvent *event) #ifndef Q_OS_WIN if (this->flags_ & FramelessDraggable) { if (this->moving) { - Log("Stop moving"); + log("Stop moving"); this->moving = false; } }