javauis/eswt_qt/org.eclipse.swt/Eclipse_SWT_PI/qt/library/swts60.cpp
changeset 80 d6dafc5d983f
parent 50 023eef975703
equal deleted inserted replaced
78:71ad690e91f5 80:d6dafc5d983f
   215     TRAPD( err, wgn = CApaWindowGroupName::NewL(coe->WsSession()));
   215     TRAPD( err, wgn = CApaWindowGroupName::NewL(coe->WsSession()));
   216     if(err == KErrNone)
   216     if(err == KErrNone)
   217         {
   217         {
   218         SwtTlsData* data = reinterpret_cast<SwtTlsData*>(Dll::Tls());
   218         SwtTlsData* data = reinterpret_cast<SwtTlsData*>(Dll::Tls());
   219         wgn->SetAppUid(TUid::Uid(static_cast<TInt>(data->uid)));
   219         wgn->SetAppUid(TUid::Uid(static_cast<TInt>(data->uid)));
   220         TRAP_IGNORE(wgn->SetCaptionL(*buffer));
   220         if (buffer != NULL)
       
   221         {
       
   222             TRAP_IGNORE(wgn->SetCaptionL(*buffer));
       
   223         }
       
   224         else
       
   225         {
       
   226             TRAP_IGNORE(wgn->SetCaptionL(KNullDesC));
       
   227         }
   221         wgn->SetWindowGroupName(coe->RootWin());
   228         wgn->SetWindowGroupName(coe->RootWin());
   222         delete wgn;
   229         delete wgn;
   223         }
   230         }
   224 
   231 
   225     delete buffer;
   232     delete buffer;