locationpickerservice/src/locationpickerservice.cpp
changeset 17 0f22fb80ebba
parent 15 13ae750350c9
child 20 cd10d5b85554
equal deleted inserted replaced
15:13ae750350c9 17:0f22fb80ebba
    46 {
    46 {
    47     if ( isActive() )
    47     if ( isActive() )
    48     {
    48     {
    49         mReturn=aLm;
    49         mReturn=aLm;
    50         connect( this, SIGNAL( returnValueDelivered() ), qApp, SLOT( quit() ) );
    50         connect( this, SIGNAL( returnValueDelivered() ), qApp, SLOT( quit() ) );
    51         completeRequest(mAsyncReqId,mReturn);    
    51         bool ok = completeRequest(mAsyncReqId,mReturn);    
    52         mAsyncReqId = 0;
    52         mAsyncReqId = 0;
       
    53         if(ok==false)
       
    54         {
       
    55             qApp->quit();
       
    56         }
    53     }
    57     }
    54 }
    58 }
    55 // ----------------------------------------------------------------------------
    59 // ----------------------------------------------------------------------------
    56 // isActive()
    60 // isActive()
    57 // ----------------------------------------------------------------------------
    61 // ----------------------------------------------------------------------------