Permalink
Browse files

Use comm port for window title if no display name

  • Loading branch information...
1 parent eaf8c71 commit b7876352cbb63e7d965c72454d55f1b34e93aa5f @bmcdorman bmcdorman committed Jan 19, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/source_file.cpp
View
@@ -112,7 +112,8 @@ SourceFile::~SourceFile()
void SourceFile::activate()
{
- mainWindow()->setTitle(target()->displayName());
+ mainWindow()->setTitle(target()->displayName().isEmpty()
+ ? target()->commPort() : target()->displayName());
mainWindow()->setStatusMessage("");

0 comments on commit b787635

Please sign in to comment.