Commit 4f877921 authored by Thomas Friedrichsmeier's avatar Thomas Friedrichsmeier
Browse files

Make <browser> respect being not required.

parent 089a5752
--- Version 0.7.1 - UNRELEASED
- Fixed: <browser> element could not be set to not required
- Fixed: max.print option was not saved, correctly, when set from RKWard settings
- Add command-line option --autoreuse to avoid shipping two separate .desktop files
- <select> elements in plugin dialogs can be set to accept only a single selection
......
......@@ -2,7 +2,7 @@
rkpluginbrowser - description
-------------------
begin : Sat Mar 10 2005
copyright : (C) 2005, 2006, 2007, 2009, 2010, 2012, 2014 by Thomas Friedrichsmeier
copyright : (C) 2018 by Thomas Friedrichsmeier
email : thomas.friedrichsmeier@kdemail.net
***************************************************************************/
......@@ -75,6 +75,12 @@ RKPluginBrowser::~RKPluginBrowser () {
RK_TRACE (PLUGIN);
}
RKComponentBase::ComponentStatus RKPluginBrowser::recursiveStatus () {
if (status == RKComponentBase::Processing) return status;
if (isInactive () || !required) return RKComponentBase::Satisfied;
return status;
}
void RKPluginBrowser::textChanged (RKComponentPropertyBase *) {
RK_TRACE (PLUGIN);
......
......@@ -45,7 +45,7 @@ public:
QVariant value (const QString &modifier=QString ()) override { return (selection->value (modifier)); };
QStringList getUiLabelPair () const override;
int type () override { return ComponentBrowser; };
ComponentStatus recursiveStatus () override { return status; };
ComponentStatus recursiveStatus () override;
public slots:
void textChangedFromUi ();
void textChanged (RKComponentPropertyBase *);
......
......@@ -79,7 +79,7 @@ void RKComponentScriptingProxy::handleScriptError (const QString& current_file)
QString file = current_file;
if (file.isEmpty ()) file = _scriptfile;
if (engine.hasUncaughtException ()) {
QString message = i18n ("Script Error: %1\n", engine.uncaughtException ().toString ());
QString message = i18n ("Script Error at '%1' line %2: %3\n", file.isEmpty() ? i18n ("inlined code") : file, engine.uncaughtExceptionLineNumber (), engine.uncaughtException ().toString ());
KMessageBox::detailedError (0, message, engine.uncaughtExceptionBacktrace ().join ("\n"));
engine.clearExceptions ();
emit (haveError());
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment