Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=3aea5f7d660313c3a75af0659311f50f1a050009

commit 3aea5f7d660313c3a75af0659311f50f1a050009
Author: crazy <[email protected]>
Date:   Thu Jan 28 19:57:46 2016 +0100

ktrafficanalyzer-0.5.4.1-4-x86_64
* fix crash

diff --git a/source/kde/ktrafficanalyzer/FrugalBuild 
b/source/kde/ktrafficanalyzer/FrugalBuild
index d628a70..5721530 100644
--- a/source/kde/ktrafficanalyzer/FrugalBuild
+++ b/source/kde/ktrafficanalyzer/FrugalBuild
@@ -14,9 +14,11 @@ _F_sourceforge_dirname="ktrafficanalyze"
_F_sourceforge_ext=".tar.bz2"
_F_sourceforge_name="KTrafficAnalyzer"
Finclude sourceforge kde
+source=($source do-not-crash.patch)
_F_cd_path="$_F_sourceforge_name-$pkgver"
depends=("${depends[@]}" "kdebase-runtime>=$_F_kde_ver")
makedepends=("${makedepends[@]}" "kdelibs-compiletime>=$_F_kde_ver")
-sha1sums=('242599cf46283367c700047fbcfeb9df9f07cd55')
+sha1sums=('242599cf46283367c700047fbcfeb9df9f07cd55' \
+          '1388114d9ce2dab80c35e4819e68f40304083191')

# optimization OK
diff --git a/source/kde/ktrafficanalyzer/do-not-crash.patch 
b/source/kde/ktrafficanalyzer/do-not-crash.patch
new file mode 100644
index 0000000..9ae4ba6
--- /dev/null
+++ b/source/kde/ktrafficanalyzer/do-not-crash.patch
@@ -0,0 +1,44 @@
+diff -Naur KTrafficAnalyzer-0.5.4.1/lib/TrafficWindow.cpp 
KTrafficAnalyzer-0.5.4.1-p/lib/TrafficWindow.cpp
+--- KTrafficAnalyzer-0.5.4.1/lib/TrafficWindow.cpp     2010-08-02 
09:20:20.000000000 +0200
++++ KTrafficAnalyzer-0.5.4.1-p/lib/TrafficWindow.cpp   2016-01-28 
19:45:06.720268216 +0100
+@@ -77,7 +77,7 @@
+     dialog->addPage(statisticsWidget, i18n("Statistics"), "kchart");
+
+     //Create correct stats skeleton
+-    /*delete KTAStats::self();
++    delete KTAStats::self();
+     
KTAStats::self(this->trafficInterface->getInterfaceName().prepend("ktastats"));
+     //Create stats dialog
+     stats = new KConfigDialog(this, "KTAStats", KTAStats::self());
+@@ -92,7 +92,7 @@
+     stats->addPage(monthlyStatsWidget, i18n("Monthly"), 
"accessories-calculator");
+     //Update traffic stats in real-time
+     QObject::connect(this, SIGNAL(updateStatsDialog(int)), dailyStatsWidget, 
SLOT(updateStatistics(int)));
+-    QObject::connect(this, SIGNAL(updateStatsDialog(int)), 
monthlyStatsWidget, SLOT(updateStatistics(int)));*/
++    QObject::connect(this, SIGNAL(updateStatsDialog(int)), 
monthlyStatsWidget, SLOT(updateStatistics(int)));
+
+     //Create display for realtime traffic graph
+     this->graphDisplay = new GraphDisplay(this);
+@@ -132,7 +132,7 @@
+
+     //Add context menu entries at the SysTray
+     this->sysTray->contextMenu()->addAction(i18n("Settings"), dialog, 
SLOT(show()));
+-    this->sysTray->contextMenu()->addAction(i18n("Stats"), stats, 
SLOT(show()));
++    //this->sysTray->contextMenu()->addAction(i18n("Stats"), stats, 
SLOT(show()));
+
+     //Restore size?
+     if (KTASettings::rememberSize()) {
+@@ -550,10 +550,11 @@
+     QObject::connect(this, SIGNAL(updateStatsDialog(int)), dailyStatsWidget, 
SLOT(updateStatistics(int)));
+     QObject::connect(this, SIGNAL(updateStatsDialog(int)), 
monthlyStatsWidget, SLOT(updateStatistics(int)));
+
+-    //Update menu-bar
+-    this->menuBar()->removeAction(this->statsEntryAction);
++    //Update menu-bar & systray
++    this->sysTray->contextMenu()->removeAction(this->statsEntryAction);
+     this->statsEntryAction = this->menuBar()->addAction(i18n("Stats"), stats, 
SLOT(show()));
+     this->menuBar()->insertAction(this->exitEntryAction, 
this->statsEntryAction);
++    this->sysTray->contextMenu()->addAction(this->statsEntryAction);
+
+     //Reset memory
+     this->memoryUpload->reset();
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to