Bug 183474

Summary: krunner isn't always run the command
Product: [Plasma] krunner Reporter: Nadav <nadavvin>
Component: generalAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: echidnaman
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Nadav 2009-02-06 20:24:23 UTC
Version:           4.2 (using Devel)
Compiler:          gcc version 4.3.2 
OS:                Linux
Installed from:    Compiled sources

It's happen in any command for example: kcalc

write kcalc and press enter, it may work..
try again and again...

it will not always work...

The problem is here:
void Interface::runDefaultResultItem()
{
    if (m_queryRunning) {
        m_delayedRun = true;
    } else {
        run(m_resultsScene->defaultResultItem());
    }
}

If I just change it to:
void Interface::runDefaultResultItem()
{
   run(m_resultsScene->defaultResultItem());
}

It work, however it will open the first searched application even if you type wrong for example: kcalca (I guess it because didn't start the new search and open the first application from the previous search kcalc)
Comment 1 Nadav 2009-02-06 20:29:34 UTC
The file is:
kdebase/workspace/krunner/interfaces/default/interface.cpp
Comment 2 Jonathan Thomas 2009-02-15 16:02:58 UTC

*** This bug has been marked as a duplicate of bug 175176 ***