Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 513488 Details for
Bug 641060
media-sound/amarok-9999::kde collection doesn't work
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Fixes amarok config dialog doesn't save changes
amarok_kf5_fix_config_dialog.patch (text/plain), 1.57 KB, created by
stephan wezel
on 2018-01-05 22:45:12 UTC
(
hide
)
Description:
Fixes amarok config dialog doesn't save changes
Filename:
MIME Type:
Creator:
stephan wezel
Created:
2018-01-05 22:45:12 UTC
Size:
1.57 KB
patch
obsolete
>diff --git a/src/configdialog/ConfigDialog.cpp b/src/configdialog/ConfigDialog.cpp >index aecf225293..fdec39d0fd 100644 >--- a/src/configdialog/ConfigDialog.cpp >+++ b/src/configdialog/ConfigDialog.cpp >@@ -70,15 +70,20 @@ Amarok2ConfigDialog::Amarok2ConfigDialog( QWidget *parent, const char* name, KCo > addPage( scripts, i18n( "Scripts" ), "preferences-plugin-script", i18n( "Configure Scripts" ) ); > //addPage( mediadevice, i18n( "Media Devices" ), "preferences-multimedia-player-amarok", i18n( "Configure Portable Player Support" ) ); > >- QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok|QDialogButtonBox::Cancel|QDialogButtonBox::Help|QDialogButtonBox::Apply); > QVBoxLayout *mainLayout = new QVBoxLayout; > setLayout(mainLayout); >+ >+ // Don't change the used button box, this breaks the button handling inside the KConfigDialog >+ QDialogButtonBox *buttonBox = this->buttonBox(); >+ >+ // Make the ok button the default button and attach shortcut to it > QPushButton *okButton = buttonBox->button(QDialogButtonBox::Ok); > okButton->setDefault(true); > okButton->setShortcut(Qt::CTRL | Qt::Key_Return); >- connect(buttonBox, &QDialogButtonBox::accepted, this, &Amarok2ConfigDialog::accept); >- connect(buttonBox, &QDialogButtonBox::rejected, this, &Amarok2ConfigDialog::reject); >- setButtonBox(buttonBox); >+ >+ // Hide the restore defaults button, we don't support it >+ buttonBox->button(QDialogButtonBox::RestoreDefaults)->setVisible(false); >+ > KWindowConfig::restoreWindowSize(windowHandle(), Amarok::config( "ConfigDialog" )); > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 641060
: 513488 |
513640