Commit 63cc2fd5 authored by David Faure's avatar David Faure
Browse files

Fix KGuiItem arguments (second arg of ki18nc, icon name...) being lost

parent 9e3e400a
......@@ -579,15 +579,13 @@ foreach my $file (@ARGV) {
warn "found setButtonGuiItem $args\n";
my $extract_args_regexp = qr/
^\(([^,]*) # button
,\s*([^,]*) # state
(.*)$ # after
,\s*(.*) # KGuiItem argument
\)$
/x;
my $localLeft = removePrivateVariable($left);
if ( my ($button, $menuName) = $args =~ $extract_args_regexp ) {
$button =~ s, ,,g;
#$menuName =~ s, ,,g;
$menuName =~ s,\),,g;
$button =~ s,^KDialog::,,;
$needKGuiItem = 1;
......
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