| View previous topic :: View next topic |
| Author |
Message |
davidbrooke Guru

Joined: 03 Jan 2015 Posts: 341
|
Posted: Thu Dec 03, 2015 11:03 am Post subject: KDE4 Ksystemlog crashing after selecting toolbar icons. |
|
|
I just did a fresh KDE4 install on three computers. All of them are having the same issue:
Ksystemlog crashing after selecting any of the toolbar icons (reload, system log, kernel log, etc...)
I found a solution and applied the patch to resolve the issue but I am wondering if this can be fixed by a Gentoo Dev or has KDE5 (plasma, frameworks and apps) become the focus of the available resources?
The following are the steps taken to resolve the issue:
Reference:
https://bugs.kde.org/show_bug.cgi?id=338966
https://bugs.kde.org/show_bug.cgi?id=342490
1. Create the following file:
/etc/portage/patches/kde-apps/ksystemlog/refresh_crash.patch
| Code: | diff --git a/src/statusBar.cpp b/src/statusBar.cpp
index 27ab0e7..14014f4 100644
--- a/src/statusBar.cpp
+++ b/src/statusBar.cpp
@@ -84,9 +84,8 @@ StatusBar::StatusBar(QWidget* parent) :
addPermanentWidget(d->messageLabel, 4);
*/
d->messageList = new KComboBox(this);
- d->messageList->setInsertPolicy(QComboBox::InsertAtTop);
d->messageList->setMaxVisibleItems(5);
- connect(d->messageList, SIGNAL(currentIndexChanged(int)), this, SLOT(selectLastHistory()));
+ d->messageList->setMaxCount(100);
/*
//TODO Define a specifical palette (and make it works !)
QPalette palette(d->messageList->palette());
@@ -121,15 +120,6 @@ void StatusBar::changeLastModification(const QTime& lastModification) {
void StatusBar::changeMessage(const QString& message) {
//d->messageLabel->setText(message);
d->messageList->insertItem(0, i18n("%1: %2", KGlobal::locale()->formatTime(QTime::currentTime(), true, false), message));
-
- //100 log history message max.
- if (d->messageList->count() > 100) {
- d->messageList->removeItem(d->messageList->count() -1);
- }
-
-}
-
-void StatusBar::selectLastHistory() {
d->messageList->setCurrentIndex(0);
}
diff --git a/src/statusBar.h b/src/statusBar.h
index c886a0d..f784de9 100644
--- a/src/statusBar.h
+++ b/src/statusBar.h
@@ -52,7 +52,6 @@ public:
private slots:
void toggleHistory();
- void selectLastHistory();
private:
StatusBarPrivate* const d; |
2. Compile and install:
sudo emerge -av kde-apps/ksystemlog |
|
| Back to top |
|
 |
bec Apprentice


Joined: 30 Sep 2004 Posts: 220 Location: Cali - Colombia
|
Posted: Wed Dec 09, 2015 2:01 pm Post subject: |
|
|
Please, submit a bug entry to gentoo bugzilla! _________________ abe |
|
| Back to top |
|
 |
davidbrooke Guru

Joined: 03 Jan 2015 Posts: 341
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|