MCPcopy Create free account
hub / github.com/KangLin/RabbitRemoteControl / SaveOperateLasterClose

Method SaveOperateLasterClose

App/Client/mainwindow.cpp:1581–1596  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1579}
1580
1581int MainWindow::SaveOperateLasterClose()
1582{
1583 QFile f(RabbitCommon::CDir::Instance()->GetDirUserConfig()
1584 + QDir::separator() + "LasterClose.dat");
1585 bool bRet = f.open(QFile::WriteOnly);
1586 if(bRet && m_Parameter.GetOpenLasterClose())
1587 {
1588 QDataStream d(&f);
1589 foreach(auto it, m_Operates)
1590 {
1591 d << it->GetSettingsFile();
1592 }
1593 }
1594 f.close();
1595 return 0;
1596}
1597
1598void MainWindow::on_actionTabBar_B_toggled(bool bShow)
1599{

Callers

nothing calls this directly

Calls 3

GetOpenLasterCloseMethod · 0.80
openMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected