'Q' now quits Kismet :) (Thanks to mazzoo for the hint)
git-svn-id: https://dedected.org/svn/trunk@64 8d8ab74c-27aa-4a3d-9bde-523a2bc1f624
This commit is contained in:
parent
9f1a220316
commit
2533c44045
|
@ -137,6 +137,7 @@ public:
|
||||||
"C - Sort by Channel (descending)\n"
|
"C - Sort by Channel (descending)\n"
|
||||||
"s - Sort by view count (ascending)\n"
|
"s - Sort by view count (ascending)\n"
|
||||||
"S - Sort by view count (descending)\n"
|
"S - Sort by view count (descending)\n"
|
||||||
|
"Q - Quit\n"
|
||||||
"<enter> - Sync with selected station and dump calls\n";
|
"<enter> - Sync with selected station and dump calls\n";
|
||||||
Kis_ModalAlert_Panel *ma = new Kis_ModalAlert_Panel(globalreg, globalreg->panel_interface);
|
Kis_ModalAlert_Panel *ma = new Kis_ModalAlert_Panel(globalreg, globalreg->panel_interface);
|
||||||
ma->Position(2, 2, 21, 70);
|
ma->Position(2, 2, 21, 70);
|
||||||
|
@ -240,6 +241,10 @@ public:
|
||||||
sort_by = SORT_BY_COUNTSEEN;
|
sort_by = SORT_BY_COUNTSEEN;
|
||||||
descending = true;
|
descending = true;
|
||||||
}
|
}
|
||||||
|
if (in_key == 'Q') {
|
||||||
|
globalreg->fatal_condition = 1;
|
||||||
|
_MSG("Quitting..", MSGFLAG_INFO);
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -177,7 +177,6 @@ Dumpfile_Dectpcap::Dumpfile_Dectpcap(GlobalRegistry *in_globalreg) :
|
||||||
globalreg->fatal_condition) {
|
globalreg->fatal_condition) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
dectpcapfile = fopen(fname.c_str(), "w");
|
dectpcapfile = fopen(fname.c_str(), "w");
|
||||||
if (dectpcapfile == NULL) {
|
if (dectpcapfile == NULL) {
|
||||||
snprintf(errstr, STATUS_MAX,
|
snprintf(errstr, STATUS_MAX,
|
||||||
|
@ -242,7 +241,6 @@ int Dumpfile_Dectpcap::chain_handler(kis_packet *in_pack) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// XXX Dump .wav?
|
|
||||||
struct pcap_pkthdr pcap_hdr;
|
struct pcap_pkthdr pcap_hdr;
|
||||||
pcap_hdr.caplen = 73;
|
pcap_hdr.caplen = 73;
|
||||||
pcap_hdr.len = 73;
|
pcap_hdr.len = 73;
|
||||||
|
|
Loading…
Reference in New Issue