mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-20 22:41:36 +00:00
Add --replayhost command line option for qrenderdoc
This allows users to specify which remote host to connect to on startup.
This commit is contained in:
committed by
Baldur Karlsson
parent
4699b459e5
commit
ca54a910f5
@@ -1772,21 +1772,9 @@ void MainWindow::FillRemotesMenu(QMenu *menu, bool includeLocalhost)
|
||||
}
|
||||
}
|
||||
|
||||
void MainWindow::switchContext()
|
||||
void MainWindow::setRemoteHost(int hostIdx)
|
||||
{
|
||||
QAction *item = qobject_cast<QAction *>(QObject::sender());
|
||||
|
||||
if(!item)
|
||||
return;
|
||||
|
||||
bool ok = false;
|
||||
int hostIdx = item->data().toInt(&ok);
|
||||
|
||||
if(!ok)
|
||||
return;
|
||||
|
||||
RemoteHost *host = NULL;
|
||||
|
||||
if(hostIdx >= 0 && hostIdx < m_Ctx.Config().RemoteHosts.count())
|
||||
{
|
||||
host = m_Ctx.Config().RemoteHosts[hostIdx];
|
||||
@@ -1933,6 +1921,20 @@ void MainWindow::switchContext()
|
||||
}
|
||||
}
|
||||
|
||||
void MainWindow::switchContext()
|
||||
{
|
||||
QAction *item = qobject_cast<QAction *>(QObject::sender());
|
||||
|
||||
if(!item)
|
||||
return;
|
||||
|
||||
bool ok = false;
|
||||
int hostIdx = item->data().toInt(&ok);
|
||||
|
||||
if(ok)
|
||||
setRemoteHost(hostIdx);
|
||||
}
|
||||
|
||||
void MainWindow::contextChooser_menuShowing()
|
||||
{
|
||||
FillRemotesMenu(contextChooserMenu, true);
|
||||
|
||||
Reference in New Issue
Block a user