Skip to content

Commit

Permalink
Re:#9966 Fix Crash in MZFlickable
Browse files Browse the repository at this point in the history
  • Loading branch information
strseb committed Oct 24, 2024
1 parent 2cb8754 commit 485a2ad
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ nebula/nebula_autogen/
nebula/libnebula.a
src/mozillavpn_autogen/
/build-*/
/build/
/build*/
dummybuild

# Node (for functional tests)
Expand Down
1 change: 1 addition & 0 deletions extension/socks5proxy/bin/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ if(WIN32)
target_sources(socksproxy PRIVATE
windowsbypass.cpp
windowsbypass.h)
target_link_libraries(socksproxy PRIVATE Iphlpapi.lib)

install(FILES
${CMAKE_CURRENT_BINARY_DIR}/socksproxy.exe
Expand Down
12 changes: 4 additions & 8 deletions nebula/ui/components/MZFlickable.qml
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,11 @@ Flickable {
boundsBehavior: Flickable.StopAtBounds
opacity: 0

onFlickContentHeightChanged: {
recalculateContentHeight()
}

onHeightChanged: {
recalculateContentHeight()
}

Component.onCompleted: {
recalculateContentHeight()
this.onHeightChanged.connect(recalculateContentHeight)
this.onFlickContentHeightChanged.connect(recalculateContentHeight)

opacity = 1;
if (Qt.platform.os === "windows") {
maximumFlickVelocity = 700;
Expand Down
2 changes: 1 addition & 1 deletion src/commands/commandui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ int CommandUI::run(QStringList& tokens) {
EventListener eventListener;
#endif

#ifdef MZ_DEBUG
#ifdef false
// This enables the qt-creator qml debugger on debug builds.:
// Go to QtCreator: Debug->Start Debugging-> Attach to QML port
// Port is 1234.
Expand Down
3 changes: 2 additions & 1 deletion src/platforms/windows/daemon/windowsfirewall.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include <QObject>
#include <QScopeGuard>
#include <QtEndian>
#include <utility>

#include "ipaddress.h"
#include "leakdetector.h"
Expand Down Expand Up @@ -320,7 +321,7 @@ bool WindowsFirewall::disableKillSwitch() {
FwpmFilterDeleteById0(m_sessionHandle, filterID);
}

for (const auto& filterID : qAsConst(m_activeRules)) {
for (const auto& filterID : std::as_const(m_activeRules)) {
FwpmFilterDeleteById0(m_sessionHandle, filterID);
}

Expand Down

0 comments on commit 485a2ad

Please sign in to comment.