Skip to content

Commit

Permalink
Added URL to window title (GitHub issue #77)
Browse files Browse the repository at this point in the history
  • Loading branch information
shundhammer committed Apr 25, 2018
1 parent de19be3 commit a45f7fc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -476,9 +476,11 @@ void MainWindow::openUrl( const QString & url )
try
{
_dirTreeModel->openUrl( url );
setWindowTitle( "QDirStat " + url );
}
catch ( const SysCallFailedException & ex )
{
setWindowFilePath( "QDirStat" );
CAUGHT( ex );

QMessageBox errorPopup( QMessageBox::Warning, // icon
Expand Down

0 comments on commit a45f7fc

Please sign in to comment.