| 1557 | } |
| 1558 | |
| 1559 | int MainWindow::LoadOperateLasterClose() |
| 1560 | { |
| 1561 | if(!m_Parameter.GetOpenLasterClose()) |
| 1562 | return 0; |
| 1563 | |
| 1564 | QFile f(RabbitCommon::CDir::Instance()->GetDirUserConfig() |
| 1565 | + QDir::separator() + "LasterClose.dat"); |
| 1566 | if(f.open(QFile::ReadOnly)) |
| 1567 | { |
| 1568 | QDataStream d(&f); |
| 1569 | while(1){ |
| 1570 | QString szFile; |
| 1571 | d >> szFile; |
| 1572 | if(szFile.isEmpty()) |
| 1573 | break; |
| 1574 | slotOpenFile(szFile); |
| 1575 | } |
| 1576 | f.close(); |
| 1577 | } |
| 1578 | return 0; |
| 1579 | } |
| 1580 | |
| 1581 | int MainWindow::SaveOperateLasterClose() |
| 1582 | { |
nothing calls this directly
no test coverage detected