Changeset 71019 in vbox
- Timestamp:
- Feb 14, 2018 7:17:47 PM (7 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/guestctrl
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/guestctrl/UIGuestControlConsole.cpp
r70988 r71019 118 118 if(!m_tCommandHistory.contains(strCommand)) 119 119 m_tCommandHistory.push_back(strCommand); 120 m_uCommandHistoryIndex = m_tCommandHistory.size() ;120 m_uCommandHistoryIndex = m_tCommandHistory.size()-1; 121 121 moveCursor(QTextCursor::End); 122 122 QPlainTextEdit::keyPressEvent(pEvent); -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/guestctrl/UIGuestControlInterface.cpp
r71017 r71019 48 48 #define GCTLCMD_COMMON_OPT_SESSION_NAME 995 /**< The --sessionname option number. */ 49 49 #define GCTLCMD_COMMON_OPT_SESSION_ID 994 /**< The --sessionid option number. */ 50 51 #define GCTLCMD_COMMON_OPTION_DEFS() \ 52 { "--username", GCTLCMD_COMMON_OPT_USER, RTGETOPT_REQ_STRING }, \ 53 { "--passwordfile", GCTLCMD_COMMON_OPT_PASSWORD_FILE, RTGETOPT_REQ_STRING }, \ 54 { "--password", GCTLCMD_COMMON_OPT_PASSWORD, RTGETOPT_REQ_STRING }, \ 55 { "--domain", GCTLCMD_COMMON_OPT_DOMAIN, RTGETOPT_REQ_STRING }, \ 56 { "--quiet", 'q', RTGETOPT_REQ_NOTHING }, \ 57 { "--verbose", 'v', RTGETOPT_REQ_NOTHING }, 58 59 50 60 /** Common option definitions. */ 51 61 class CommandData … … 241 251 { "--quiet", 'q', RTGETOPT_REQ_NOTHING }, 242 252 { "--verbose", 'v', RTGETOPT_REQ_NOTHING }, 243 { "--help", 'h', RTGETOPT_REQ_NOTHING }244 253 }; 245 254 … … 303 312 RTGetOptArgvFromString(&argv, &argc, array.data(), RTGETOPTARGV_CNV_QUOTE_BOURNE_SH, 0); 304 313 305 static const RTGETOPTDEF s_aOptions[] = {}; 314 static const RTGETOPTDEF s_aOptions[] = 315 { 316 GCTLCMD_COMMON_OPTION_DEFS() 317 }; 306 318 307 319 int ch;
Note:
See TracChangeset
for help on using the changeset viewer.