[Pkg-kde-extras] Bug#563038: [PATCH]: fix segfault
Kel Modderman
kel at otaku42.de
Sun Jan 24 02:58:46 UTC 2010
Hi Stefan,
I take care of touchfreeze in Debian, recent QT changes caused touchfreeze
to segfault upon startup, this patch seems to fix it.
Thanks, Kel.
Description: QApplication's argc must be a reference.
Bug-Debian: http://bugs.debian.org/563038
Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/touchfreeze/+bug/453581
---
--- a/TouchFreezeApp.h
+++ b/TouchFreezeApp.h
@@ -37,7 +37,7 @@ class TouchFreezeApp: public QApplicatio
{
Q_OBJECT
public:
- TouchFreezeApp( int argc, char* argv[] );
+ TouchFreezeApp( int& argc, char* argv[] );
virtual ~TouchFreezeApp();
protected:
--- a/TouchFreezeApp.cpp
+++ b/TouchFreezeApp.cpp
@@ -35,7 +35,7 @@
#include <QString>
#include <QProcess>
-TouchFreezeApp::TouchFreezeApp( int argc, char* argv[] ) : QApplication( argc, argv )
+TouchFreezeApp::TouchFreezeApp( int& argc, char* argv[] ) : QApplication( argc, argv )
{
if ( !QSystemTrayIcon::isSystemTrayAvailable() )
{
---
More information about the pkg-kde-extras
mailing list