| 989 | } |
| 990 | |
| 991 | void CaptureDialog::SaveSettings(const rdcstr &filename) |
| 992 | { |
| 993 | QFile f(filename); |
| 994 | if(f.open(QIODevice::WriteOnly | QIODevice::Truncate | QIODevice::Text)) |
| 995 | { |
| 996 | QVariantMap values; |
| 997 | values[lit("settings")] = (QVariant)Settings(); |
| 998 | SaveToJSON(values, f, JSON_ID, JSON_VER); |
| 999 | } |
| 1000 | else |
| 1001 | { |
| 1002 | RDDialog::critical(this, tr("Error saving config"), |
| 1003 | tr("Couldn't open path %1 for write.").arg(filename)); |
| 1004 | } |
| 1005 | } |
| 1006 | |
| 1007 | void CaptureDialog::fillProcessList() |
| 1008 | { |