| 1579 | } |
| 1580 | |
| 1581 | int 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 | |
| 1598 | void MainWindow::on_actionTabBar_B_toggled(bool bShow) |
| 1599 | { |
nothing calls this directly
no test coverage detected