mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-30 22:15:32 +00:00
Fixed broken profile actions
This commit is contained in:
parent
b52645bf2a
commit
24e38846da
1 changed files with 7 additions and 1 deletions
|
@ -29,6 +29,8 @@ DataFilesPage::DataFilesPage(Files::ConfigurationManager &cfg, GameSettings &gam
|
||||||
, mLauncherSettings(launcherSettings)
|
, mLauncherSettings(launcherSettings)
|
||||||
, ContentSelector(parent)
|
, ContentSelector(parent)
|
||||||
{
|
{
|
||||||
|
QMetaObject::connectSlotsByName(this);
|
||||||
|
|
||||||
// Create a dialog for the new profile name input
|
// Create a dialog for the new profile name input
|
||||||
mNewProfileDialog = new TextInputDialog(tr("New Profile"), tr("Profile name:"), this);
|
mNewProfileDialog = new TextInputDialog(tr("New Profile"), tr("Profile name:"), this);
|
||||||
|
|
||||||
|
@ -40,10 +42,13 @@ DataFilesPage::DataFilesPage(Files::ConfigurationManager &cfg, GameSettings &gam
|
||||||
|
|
||||||
void DataFilesPage::createActions()
|
void DataFilesPage::createActions()
|
||||||
{
|
{
|
||||||
|
qDebug () << "adding actions...";
|
||||||
// Add the actions to the toolbuttons
|
// Add the actions to the toolbuttons
|
||||||
newProfileButton->setDefaultAction(newProfileAction);
|
newProfileButton->setDefaultAction(newProfileAction);
|
||||||
deleteProfileButton->setDefaultAction(deleteProfileAction);
|
deleteProfileButton->setDefaultAction(deleteProfileAction);
|
||||||
|
|
||||||
|
for (int i = 0; i < newProfileButton->actions().size(); i++)
|
||||||
|
qDebug() << newProfileButton->actions().at(i)->objectName();
|
||||||
}
|
}
|
||||||
|
|
||||||
void DataFilesPage::setupDataFiles()
|
void DataFilesPage::setupDataFiles()
|
||||||
|
@ -186,6 +191,7 @@ int DataFilesPage::profilesComboBoxIndex()
|
||||||
|
|
||||||
void DataFilesPage::on_newProfileAction_triggered()
|
void DataFilesPage::on_newProfileAction_triggered()
|
||||||
{
|
{
|
||||||
|
qDebug() << "new_profile_action_triggered";
|
||||||
if (mNewProfileDialog->exec() == QDialog::Accepted) {
|
if (mNewProfileDialog->exec() == QDialog::Accepted) {
|
||||||
QString profile = mNewProfileDialog->lineEdit()->text();
|
QString profile = mNewProfileDialog->lineEdit()->text();
|
||||||
profilesComboBox->addItem(profile);
|
profilesComboBox->addItem(profile);
|
||||||
|
|
Loading…
Reference in a new issue