Changeset 375 in PSPA for Interface_Web/trunk/pspaWT/sources/userInterface/src/GWt_pspaApplication.cc
- Timestamp:
- Mar 7, 2013, 1:15:29 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Interface_Web/trunk/pspaWT/sources/userInterface/src/GWt_pspaApplication.cc
r371 r375 46 46 47 47 PspaApplication::PspaApplication(const WEnvironment& env) : WApplication(env) 48 ,applicationDefaultTitle_("portail PSPA") 48 49 { 49 50 … … 51 52 nameOfCase_ = "pspa"; // default 52 53 53 setTitle( "portail PSPA"); // application title54 setTitle(applicationDefaultTitle_); // application title 54 55 if (!wApp->environment().javaScript()) { 55 56 new WText("<i>This examples requires that javascript support is enabled.</i>",root()); … … 374 375 string fileName = fs->exec(); 375 376 nameOfCase_ = fileName; 376 377 if (fileName == "") { 378 return; 379 } 380 377 381 removePathFromConfigName(nameOfCase_ ); 378 382 cout << " nom sans path " << nameOfCase_ << endl; … … 388 392 GWt_dialog restoreWarning(" element restoring", "failure in restoring elements from file : " + fileName , GWt_dialog::Error, false,true); 389 393 restoreWarning.exec(); 394 } else { 395 // Change the window title 396 unsigned long found = fileName.find_last_of("/"); 397 setTitle(applicationDefaultTitle_+" : "+fileName.substr(found+1)); 390 398 } 391 399
Note: See TracChangeset
for help on using the changeset viewer.