VirtualBox

Ignore:
Timestamp:
Feb 21, 2019 11:47:48 AM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
128968
Message:

FE/Qt: Showing machine's name in debug console's title bar.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Debugger/VBoxDbgConsole.cpp

    r76553 r77409  
    2222#define LOG_GROUP LOG_GROUP_DBGG
    2323#include "VBoxDbgConsole.h"
     24#include "VBoxDbgGui.h"
    2425
    2526#include <QLabel>
     
    489490    m_fTerminate(false), m_fThreadTerminated(false)
    490491{
    491     setWindowTitle("VBoxDbg - Console");
    492 
     492    QString strMachineName;
     493    if (a_pDbgGui)
     494        strMachineName = a_pDbgGui->getMachineName();
     495
     496    if (strMachineName.isEmpty())
     497        setWindowTitle("VBoxDbg - Console");
     498    else
     499        setWindowTitle(QString("%1 - VBoxDbg - Console").arg(strMachineName));
    493500    /*
    494501     * Create the output text box.
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette