MCPcopy Create free account
hub / github.com/DreamSourceLab/DSView / on_actionLoad_triggered

Method on_actionLoad_triggered

DSView/pv/toolbars/filebar.cpp:162–181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160}
161
162void FileBar::on_actionLoad_triggered()
163{
164 //load session file
165 AppConfig &app = AppConfig::Instance();
166 const QString file_name = QFileDialog::getOpenFileName(
167 this,
168 L_S(STR_PAGE_DLG, S_ID(IDS_DLG_OPEN_SEESION), "Open Session"),
169 app.userHistory.sessionDir,
170 "DSView Session (*.dsc)");
171
172 if (!file_name.isEmpty()) {
173 QString fname = path::GetDirectoryName(file_name);
174 if (fname != app.userHistory.sessionDir){
175 app.userHistory.sessionDir = fname;
176 app.SaveHistory();
177 }
178
179 sig_load_session(file_name);
180 }
181}
182
183void FileBar::on_actionDefault_triggered()
184{

Callers

nothing calls this directly

Calls 2

GetDirectoryNameFunction · 0.85
SaveHistoryMethod · 0.80

Tested by

no test coverage detected