diff --git a/src/tools/qmlprofiler/qmlprofilerapplication.cpp b/src/tools/qmlprofiler/qmlprofilerapplication.cpp index dcfc7017c8b..ab1e0350141 100644 --- a/src/tools/qmlprofiler/qmlprofilerapplication.cpp +++ b/src/tools/qmlprofiler/qmlprofilerapplication.cpp @@ -80,7 +80,6 @@ QmlProfilerApplication::QmlProfilerApplication(int &argc, char **argv) : m_tracePrefix("trace"), m_hostName(QLatin1String("127.0.0.1")), m_port(3768), - m_recordFromStart(false), m_verbose(false), m_quitAfterSave(false), m_traceClient(&m_connection), @@ -139,7 +138,7 @@ bool QmlProfilerApplication::parseArguments() return false; } } else if (arg == "-fromStart") { - m_recordFromStart = true; + m_traceClient.setRecording(true); } else if (arg == "-help" || arg == "-h" || arg == "/h" || arg == "/?") { return false; } else if (arg == "-verbose" || arg == "-v") { diff --git a/src/tools/qmlprofiler/qmlprofilerapplication.h b/src/tools/qmlprofiler/qmlprofilerapplication.h index 3bbed05ea14..5bc0ff0a1ed 100644 --- a/src/tools/qmlprofiler/qmlprofilerapplication.h +++ b/src/tools/qmlprofiler/qmlprofilerapplication.h @@ -92,7 +92,6 @@ private: QString m_hostName; quint16 m_port; - bool m_recordFromStart; bool m_verbose; bool m_quitAfterSave;