[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdebase/kicker/buttons
From: Oliver Bausinger <bausi () bausi ! org>
Date: 2003-12-21 21:52:32
[Download RAW message or body]
CVS commit by bausi:
In properties of kicker buttons, make the file name read only,
so users can't mess with it and produce strange errors.
Using the new KPropertiesDialog::setFileNameReadOnly()
[Thanks David!]
CCMAIL: 70696-done@bugs.kde.org
CCMAIL: 70858-done@bugs.kde.org
M +3 -1 servicebutton.cpp 1.18
M +3 -1 urlbutton.cpp 1.12
--- kdebase/kicker/buttons/servicebutton.cpp #1.17:1.18
@@ -213,7 +213,9 @@ void ServiceButton::properties()
KURL serviceURL;
serviceURL.setPath( path );
- KPropertiesDialog* dialog = new KPropertiesDialog( serviceURL ); // \
will delete itself + KPropertiesDialog* dialog = new KPropertiesDialog( \
serviceURL, 0L, 0L, false, false ); // will delete itself + \
dialog->setFileNameReadOnly(true);
connect( dialog, SIGNAL(saveAs(const KURL &, KURL &)), SLOT( \
slotSaveAs(const KURL &, KURL &))); connect( dialog, \
SIGNAL(propertiesClosed()), SLOT( slotUpdate())); + dialog->show();
}
--- kdebase/kicker/buttons/urlbutton.cpp #1.11:1.12
@@ -197,5 +197,7 @@ void URLButton::properties()
}
- pDlg = new KPropertiesDialog(fileItem); // will delete itself
+ pDlg = new KPropertiesDialog(fileItem, 0L, 0L, false, false); // will \
delete itself + pDlg->setFileNameReadOnly(true);
connect(pDlg, SIGNAL(applied()), SLOT(updateURL()));
+ pDlg->show();
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic