Bug 183474 - krunner isn't always run the command
Summary: krunner isn't always run the command
Status: RESOLVED DUPLICATE of bug 175176
Alias: None
Product: krunner
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-06 20:24 UTC by Nadav
Modified: 2009-02-15 16:02 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***