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