src/config.cpp

changeset 8
e8f645d9f28f
parent 6
67b6ef6917ba
child 10
bc1414343e19
equal deleted inserted replaced
7:fdabb5869e5f 8:e8f645d9f28f
72 addPath( it.toString() ); 72 addPath( it.toString() );
73 73
74 int i = 0; 74 int i = 0;
75 for( str ver : g_zanVersions ) 75 for( str ver : g_zanVersions )
76 m_zanBinaries[i++]->setText( cfg.value( binaryConfigName( ver ), "" ).toString() ); 76 m_zanBinaries[i++]->setText( cfg.value( binaryConfigName( ver ), "" ).toString() );
77
78 ui->noDemoPrompt->setChecked( cfg.value( "nodemoprompt", false ).toBool() );
77 } 79 }
78 80
79 // ============================================================================= 81 // =============================================================================
80 // ----------------------------------------------------------------------------- 82 // -----------------------------------------------------------------------------
81 void ConfigBox::addPath() { 83 void ConfigBox::addPath() {
137 139
138 for( int i = 0; i < ui->wad_pathsList->count(); ++i ) 140 for( int i = 0; i < ui->wad_pathsList->count(); ++i )
139 wadPathList << ui->wad_pathsList->item( i )->text(); 141 wadPathList << ui->wad_pathsList->item( i )->text();
140 142
141 cfg.setValue( "wads/paths", wadPathList ); 143 cfg.setValue( "wads/paths", wadPathList );
144 cfg.setValue( "nodemoprompt", ui->noDemoPrompt->isChecked() );
142 145
143 int i = 0; 146 int i = 0;
144 for( str ver : g_zanVersions ) 147 for( str ver : g_zanVersions )
145 cfg.setValue( binaryConfigName( ver ), m_zanBinaries[i++]->text() ); 148 cfg.setValue( binaryConfigName( ver ), m_zanBinaries[i++]->text() );
146 149

mercurial