src/gui.cpp

changeset 227
e13cd69b16dd
parent 226
3dd9e63698cd
child 229
b9e101b76eb3
equal deleted inserted replaced
226:3dd9e63698cd 227:e13cd69b16dd
505 title += " RC"; 505 title += " RC";
506 #endif // BUILD_ID 506 #endif // BUILD_ID
507 507
508 // Append our current file if we have one 508 // Append our current file if we have one
509 if (g_curfile) { 509 if (g_curfile) {
510 title += fmt (": %s", basename (g_curfile->m_filename.chars())); 510 if (g_curfile->m_filename.len () > 0)
511 title += fmt (": %s", basename (g_curfile->m_filename));
512 else
513 title += fmt (": <anonymous>");
511 514
512 if (g_curfile->m_objs.size() > 0 && 515 if (g_curfile->m_objs.size() > 0 &&
513 g_curfile->m_objs[0]->getType() == LDObject::Comment) 516 g_curfile->m_objs[0]->getType() == LDObject::Comment)
514 { 517 {
515 // Append title 518 // Append title

mercurial