Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
9cbafa96
Commit
9cbafa96
authored
Apr 01, 2010
by
ck
Browse files
Maemo: Use first device configuration as default.
Reviewed-by: kh1
parent
ea61e132
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/qt4projectmanager/qt-maemo/maemorunconfiguration.cpp
View file @
9cbafa96
...
...
@@ -94,6 +94,7 @@ void MaemoRunConfiguration::init()
setDisplayName
(
tr
(
"MaemoRunConfiguration"
));
}
updateDeviceConfigurations
();
connect
(
&
MaemoDeviceConfigurations
::
instance
(),
SIGNAL
(
updated
()),
this
,
SLOT
(
updateDeviceConfigurations
()));
...
...
@@ -516,8 +517,15 @@ void MaemoRunConfiguration::qemuProcessFinished()
void
MaemoRunConfiguration
::
updateDeviceConfigurations
()
{
qDebug
(
"%s: Current devid = %llu"
,
Q_FUNC_INFO
,
m_devConfig
.
internalId
);
m_devConfig
=
MaemoDeviceConfigurations
::
instance
().
find
(
m_devConfig
.
internalId
);
const
MaemoDeviceConfigurations
&
configManager
=
MaemoDeviceConfigurations
::
instance
();
if
(
!
m_devConfig
.
isValid
())
{
const
QList
<
MaemoDeviceConfig
>
&
configList
=
configManager
.
devConfigs
();
if
(
!
configList
.
isEmpty
())
m_devConfig
=
configList
.
first
();
}
else
{
m_devConfig
=
configManager
.
find
(
m_devConfig
.
internalId
);
}
qDebug
(
"%s: new devid = %llu"
,
Q_FUNC_INFO
,
m_devConfig
.
internalId
);
emit
deviceConfigurationsUpdated
();
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment