[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kdevelop-bugs
Subject:    [Bug 85559] New: Expansion of editor selections (using %T) in external tools file context menu broke
From:       kdevelop-bugs-admin () barney ! cs ! uni-potsdam ! de
Date:       2004-07-20 13:19:00
Message-ID: 20040720131900.479.qmail () ktown ! kde ! org
[Download RAW message or body]

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
      
http://bugs.kde.org/show_bug.cgi?id=85559      
           Summary: Expansion of editor selections (using %T) in external
                    tools file context menu broken
           Product: kdevelop
           Version: 3.0.4
          Platform: unspecified
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: kdevelop-bugs kdevelop org
        ReportedBy: pbrakemeier worldres com


Version:           3.0.4 (using KDE 3.2.3, SuSE)
Compiler:          gcc version 3.3 20030226 (prerelease) (SuSE Linux)
OS:                Linux (i686) release 2.4.20-4GB

When calling an external app in file context menu, "magic" %T is not properly \
expanded to current editor selection. See parts/tools/tools_part.cpp (looks like a \
typical copy/paste issue ;-) ):

...
if (cmdline.contains("%S") && fileName.isNull())
        return;
    cmdline.replace(QRegExp("%S"), fileName);

if (cmdline.contains("%T") && selection.isNull())
        return;
> > > cmdline.replace(QRegExp("%S"), selection);

should be
> > > cmdline.replace(QRegExp("%T"), selection);


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic